How do I execute a command in the system shell in D (preferably T开发者_JAVA技巧ango)?
Phobos provides std.process (D1.x) (D2.x). Then you would just use the system() call. The exec commands are also available here.
tango.stdc.stdlib should, as tango's docs say,
provide[s] an essentially complete interface to the standard C library (according to ISO/IEC 9899:1999)
(stdlib.h
is where C defines system
).
精彩评论