| 
     
       |  |  |  | 
            
              | 
             
               | 
               
                 |  | UGU: Unix Guru Universe - Unix Tip #4626- November  9, 2024
 -  Home : Help
 : Today's Tip Unix Tip #4626- November  9, 2024
 
 
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 $''; }
 
 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)
 |  |  
                 |  |  
                 |   Copyright 1994-2024 Unix Guru Universe 
 |  |  |  |  |