From: Michael Mohr <mmohr@ait.ac.nz>
To: "Paul D. Chapin" <pdchapin@unix.amherst.edu>
Cc: benjieg@corp.nsc.com
Subject: Re: Inserting a system reboot in crontab script
Date: 1996/11/18 [thread overview]
Message-ID: <328F9689.5B8F@ait.ac.nz> (raw)
In-Reply-To: 56cquo$pem@tom.amherst.edu
Paul D. Chapin wrote:
>
> Benjie Gandionco (benjieg@corp.nsc.com) wrote:
> : Is it possible to insert a system reboot in a crontab script?
> : I want to do a reboot in the middle of a script and then continue
> : right where it left off.
>
> Probably easiest to divide the script into two parts. Have the first
> part fire off and reboot the system, and set the second part to start
> later, giving the system time to come up again.
>
--
Depending on the access to 'at', you might be able to launch the
remaining script as a separate batch job within you script. We do
something similar to ensure that overnight processing is not started
until archive processing is done. Our command is 'at -f nightjobs now +
1 minute'. If you need to create a dynamic (context oriented) job, you
can pipe the followup script into the job. Just make sure you allow
enough time for the reboot to complete before starting the followup.
================================================================
Mike Mohr, Database Administrator === Email: mmohr@ait.ac.nz
Information Technology Group === Phone: 64 9 307-9999 x8133
Auckland Institute of Technology === Fax: 64 9 307-9901
PO Box 92006, Auckland, New Zealand =
================================================================
If we have unlimited ability to think, why do we use computers?
next prev parent reply other threads:[~1996-11-18 5:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-12 5:00 Inserting a system reboot in crontab script Benjie Gandionco
1996-11-13 5:00 ` Paul D. Chapin
1996-11-18 5:00 ` Michael Mohr [this message]
1996-11-13 5:00 ` Jim Zahrndt
1996-11-13 5:00 ` Andreas Woerner t-
1996-11-13 5:00 ` Mark landin
1996-11-14 5:00 ` Simon Wing-Tang
1996-11-15 5:00 ` Matthew Tovey
1996-11-18 5:00 ` Benjie Gandionco
1996-11-18 5:00 ` Tim Mooney
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