"The D Way" to run a sequence of executables?
JN
666total at wp.pl
Sat Aug 25 22:00:47 UTC 2018
On Friday, 24 August 2018 at 17:36:25 UTC, Matthew OConnor wrote:
> I'd like to run a sequence of executables with something like
> std.process.execute, but I would like the sequence to error out
> if one of the executables returns a non-zero return code. What
> is the recommended way to do this? A wrapper that throws
> exceptions? Checking return values?
It's kind of a dirty and not very portable solution, but if you
run by executeShell, you could so something like
executeShell("cmd1 && cmd2 && cmd3") and let the shell do the
sequence for you.
More information about the Digitalmars-d-learn
mailing list