How do I execute a command in the system shell in D (preferably Tango)?
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
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With