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

Re: Fwd: Questions about SIGHUP behavior



On 13Nov13:1240+0100, Steffen Dettmer wrote:

> thanks for your detailed answer.

Indeed, this is very good material to understand.  As a minor
point in the interest of complete treatment, I add the nohup nohup
construct; e.g.,

( while : ; do sleep 60 ; echo awake `date` ; done &>/dev/null & )

which has the same effect as the nohup command.  Try inserting
" trap 'echo HUP' HUP ; " before the 'while' and redirecting
to something like /tmp/$$.log instead of /dev/null to see if
it actually receives SIGHUP signals via kill -1 <PID of sh>
commands.
-- 
<not cent from sell>
May the LORD God bless you exceedingly abundantly!

Dave_Craig______________________________________________
"So the universe is not quite as you thought it was.
 You'd better rearrange your beliefs, then.
 Because you certainly can't rearrange the universe."
__--from_Nightfall_by_Asimov/Silverberg_________________


Reply to: