LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   batch job finished notification (https://www.linuxquestions.org/questions/linux-general-1/batch-job-finished-notification-533915/)

nkelle 03-02-2007 09:40 AM

batch job finished notification
 
I write SAS programs in VI - then I run the job:
nohup sas <name.sas> &

If I keep hitting enter, eventually, when the job finishes, I get a

[1]+ Done nohup sas <name.sas>

There is a command/option that I used under previous employment that I added to my .profile, such thatn, when the job finished, it would automatically give me the

[1]+ Done nohup sas <name.sas>

I didn't have to keep hitting enter.

I can't find that command/option.

anyone?

nk

acid_kewpie 03-02-2007 10:19 AM

personally i'd have to question your motivations for using nohup and forking to background if you're going to keep that terminal open. that defies the point of using nohup completely.

if you really want the experience i *think* you're looking where, where your single terminal sssion gets crudely interrupted when a forked process ends, then try
Code:

(myprogram -a -b -c > myprogram.out; echo DONE!) &
pretty nasty though if you ask me.

nkelle 03-08-2007 10:45 AM

found the command
 
set -o notify

works in linux & unix


I use nohup & background - I often have to close things down & dislike interupting job.s


All times are GMT -5. The time now is 01:26 AM.