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: noyd@u.washington.edu (Steve Jones) Subject: Re: Does dump kill cron? Date: 1996/09/09 Message-ID: <511t45$fs7@nntp5.u.washington.edu>#1/1 X-Deja-AN: 179517671 references: <50njcn$e70@nr1.toronto.istar.net> <32305760.2D5A@ix.netcom.com> <51050q$199@lex.zippo.com> organization: University of Washington, Seattle nntp-posting-user: noyd newsgroups: comp.unix.osf.osf1 In article <51050q$199@lex.zippo.com>, wrote: >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 A program (dwrap.c) which mitigates the problem(s) above with using dump from cron is available in the archive: ftp://ftp.u.washington.edu/public/noyd/bdump.tar Another characteristic of 'cron' not mentioned above is that it will schedule another job regardless of how the previous run of the job ended (or did not end). If jobs do not terminate in a timely manner, cron can be killed or otherwise foiled when it runs out of resources (account/process limits). -- -- Steven Jones Computing & Communications 354843, University of Washington E-mail: noyd@u.washington.edu Phone: (206) 543-5852