Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: noyd@u.washington.edu (Steve Jones)
Subject: Re: Does dump kill cron?
Date: 1996/09/09	[thread overview]
Message-ID: <511t45$fs7@nntp5.u.washington.edu> (raw)
In-Reply-To: 51050q$199@lex.zippo.com


In article <51050q$199@lex.zippo.com>,
 <wzambotti@southmark.xlane.net.au> 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 </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



  reply	other threads:[~1996-09-09  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-05  4:00 Does dump kill cron? Craig Rodrigues
1996-09-06  4:00 ` Brian Martin
1996-09-08  4:00   ` wzambotti
1996-09-09  4:00     ` Steve Jones [this message]
1996-09-09  4:00 ` Martin Moore
1996-09-10  4:00   ` Craig Rodrigues
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox