From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4bdce148a23c5fc6 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,4bdce148a23c5fc6 X-Google-Attributes: gidfee84,public From: Juhani Jaakola Subject: Re: cron dies in Digital OSF1 Date: 1997/09/15 Message-ID: <341D3B1E.37BF@Hansel.FI>#1/1 X-Deja-AN: 273752141 References: <340E983C.7C45@Hansel.FI> <34141B4D.CD3AF8BE@uvo.dec.com> <3418E0AD.13E8@Hansel.FI> <3419039E.CB0209F5@uvo.dec.com> To: John McNulty Organization: Trading House Hansel ltd Reply-To: Juhani.Jaakola@Hansel.FI Newsgroups: comp.unix.osf.osf1,comp.sys.dec John McNulty wrote: > > Juhani Jaakola wrote: > > > > John McNulty wrote: > > > My guess, you are taking backup dumps from inside a cron job. At > > > V2.0 there was a bug in dump/rdump where if they abort improperly, > > > they would kill the parent process. Hense, it cron is the parent > > > process, bye-bye cron. The was a patch for this. > > > > Yes that's indeed the case. Thanks for help! > > > > If I start the script that does the dump with nohup, does that give me a > > work-around? > > Sounds plausible, try it and see. If not, move your dump commands > into a separate script, and run '/bin/sh scriptname &' from cron. Very strange, but nohup doesn't help! I have the dump command in a script, which I call from my crontab with "nohup scriptname > logname 2>&1 &". I use /bin/sh as my shell and I think cron uses that also. So the parent process of dump is /bin/sh or nohup, not cron, right? Perhaps dump kills the whole process group (but shouldn't nohup break that link?) or somehow cron and dump are linked - perhaps via stdin, which isn't redirected?