From: wzambotti@southmark.xlane.net.au
Subject: Re: Does dump kill cron?
Date: 1996/09/08 [thread overview]
Message-ID: <51050q$199@lex.zippo.com> (raw)
In-Reply-To: 32305760.2D5A@ix.netcom.com
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
next prev parent reply other threads:[~1996-09-08 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 [this message]
1996-09-09 4:00 ` Steve Jones
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