tags:

views:

161

answers:

2

How do I execute a command in the system shell in D (preferably Tango)?

+4  A: 

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).

Alex Martelli
+6  A: 

Phobos provides std.process (D1.x) (D2.x). Then you would just use the system() call. The exec commands are also available here.

he_the_great