Have you ever started a long
running task, and after some time
decide you want to be alerted
when it finishes?
Add this to your .bashrc:
function aldo { while ps -ao pid | grep -q " ${1}$"; do sleep 1 ; done;
echo $'\a'; }
Then find the pid of a long
running process(say 253) and
on a different terminal:
501$ aldo 253
Will treat you to a pleasant beep when the task finishes.
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.