www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How does one run a linux system command from a D main() fcn ?

reply Andy Balba <pwplus7 gmail.com> writes:
i.e.  D  equivalent to C++ command system("MyExe")
Aug 04 2020
next sibling parent Luhrel <lucien.perregaux gmail.com> writes:
On Tuesday, 4 August 2020 at 19:52:47 UTC, Andy Balba wrote:
 i.e.  D  equivalent to C++ command system("MyExe")
https://dlang.org/library/std/process.html
Aug 04 2020
prev sibling parent Dennis <dkorpel gmail.com> writes:
On Tuesday, 4 August 2020 at 19:52:47 UTC, Andy Balba wrote:
 i.e.  D  equivalent to C++ command system("MyExe")
Apart from std.process, you can also call the C function in D after importing core.stdc.stdlib: https://dlang.org/library/core/stdc/stdlib/system.html
Aug 04 2020