From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,35322bec09f26a7 X-Google-Attributes: gidfee84,public From: wzambotti@southmark.xlane.net.au Subject: Re: Does dump kill cron? Date: 1996/09/08 Message-ID: <51050q$199@lex.zippo.com>#1/1 X-Deja-AN: 179406853 references: <50njcn$e70@nr1.toronto.istar.net> <32305760.2D5A@ix.netcom.com> organization: Zippo newsgroups: comp.unix.osf.osf1 In article , Brian says... > >Craig Rodrigues wrote: >> I heard that running dump in a cron job has the potential to kill cron. > >I run vdump and have no problems. Close, but may not be a confirmation. I haven't heard about killing cron but ... You must be carefull when running dump/vdump from cron because : dump trys to open the controlling tty the moment it starts vdump trys to open the controlling tty the moment a tape request is made they both do this for the same reason. So they can prompt for tapes during the dumping. Of course when run as a cron job there is no controlling tty so you get messages like : Cannot open /dev/tty ... aborting. Because dump does this at the beginning it is not really suited for cron. And vdump can only be used if you guarentee that the dump will fit on one tape. You can try to use redirection with dump so that it can at least perform in a similar fashion to vdump like so : ( dump -dumpFlags /device /filesystem ) 2&>1 >/dev/console From memory the brackets were important, so it was all run in a sub-shell. Of course if the dump requires more than one tape then it will hang as apposed to aborting like vdump. Regards, Walter Zambotti