[Gllug] Attach a command to run on completion of another process

salsaman salsaman at xs4all.nl
Wed Feb 28 16:06:59 UTC 2007


Tom Schutzer-Weissmann wrote:

>If I'm  running a long compile process I sometimes do this:
>
>~$ make && yay || oops
>
>Where yay makes a happy sound and oops makes an unhappy one. Occasionally I 
>forget, or I start a process I realise is going to take longer than 
>anticipated. Is there a way to attach new commands to the outcome of one 
>already running?
>
>Thanks
>Tom SW
>  
>
Press ctrl-z to pause the "make", then type:

fg && yay || oops

Gabriel.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list