The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged


This is what I came up with. First, a dummy run script, which in your case will be something quite different: #!/bin/bash sleep $1; exit $2 Next, a bg script that puts run jobs into the background, with appropriate redirections: #!/bin/bash echo $$ ( ( touch $$.running; "$@" > $$.out 2>$$.err ; echo $? > $$.exitcode ) & ) Finally, a ...

Top 50 recent answers are included