4 ms·
Might be worth it for you to just get better at bash. Use background jobs and "wait": do.sh stuff & wait; do-other-stuff.sh -123 & wait; cd ../; do
by parliament32 7y ago
Might be worth it for you to just get better at bash. Use background jobs and "wait":
do.sh stuff &
wait; do-other-stuff.sh -123 &
wait; cd ../; do-something-else.sh
It'll run the first command, when it's done it'll move on to the next one, etc. Use "jobs" to see jobs. Further reading: https://tldp.org/LDP/abs/html/x9644.html https://tldp.org/LDP/abs/html/x9644.html