[colug-432] scripting
Vince Herried
Vince at planetvince.com
Sun May 19 11:55:47 EDT 2019
Sigh, google is my friend.
I discovered jobs -p
Whee, that makes it much easier.
I think I have it
#!/bin/bash
sleep 50 &
sleep 50 &
sleep 50 &
sleep 50 &
# now wait
echo -n ' waiting '
for job in `jobs -p` ; do
echo -n '*'
sleep 10
done
echo done
---
Vince's outgoing mail
Vince at planetvince.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20190519/9996a0ff/attachment.html
More information about the colug-432
mailing list