[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: email notification when a process ends?



Zhengquan Zhang wrote:
>> ,----
>> |   while true; do
>> | 
>> |     IDP=$(pidof your_process)
> 
> so the IDP should now be the process ID.
> 
> 
>> | 
>> |     if (( $? == 1 )) ; then
> 
> Could you explain $? ==1 abit? I am sorry I am not familiar with this.

$? is a bash variable that holds the return value of the last command.




-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: