4 ms·
This stackoverflow answer[0] shows how you can queue jobs even after you start running other processes in your queue. Essentially, you can do: sleep 2; echo
by kovek 11y ago
This stackoverflow answer[0] shows how you can queue jobs even after you start running other processes in your queue.
Essentially, you can do:
sleep 2; echo "A" && sleep 2 ; echo "B" && sleep 2 ; echo "C"
# Quickly Ctrl-Z
fg && sleep 2 ; echo "D"
and you will see A\nB\nC\nD\n slowly printed out in your terminal.
[0]: http://superuser.com/a/345455 http://superuser.com/a/345455