Unix Tip #4626- November 10, 2023


SEARCH : Home : Help : Today's Tip

TASK ALERTS


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.


LAST 5 TIPS
4625 - NO WRITES TO PASSWORD FILE
4624 - EAT YOUR PERL PIE
4623 - CHANGING A PRINT QUEUE IP
4622 - MOVING FILES AROUND
4621 - GOOD TIME FOR CRON


I want to SUBSCRIBE and get a UGU Tip everyday.
I want to UNSUBSCRIBE and NOT get a UGU Tip everyday.

If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
Email Address:

Yes, email me a Hot Unix Tip everday.

Enter Hot Unix Tip (optional):

Yes, I will support this tip

Captcha (not case sensitive):


Please enter the above letters:


HOME | Flavors | Admin | Network | Security | S/W | Help | Events | Vendors | Careers | Internet
About | Add Link | Feedback | Search

Copyright © 1994-2005 Unix Guru Universe