From: m555@ix.netcom.com (Mark landin)
Subject: Re: Inserting a system reboot in crontab script
Date: 1996/11/13 [thread overview]
Message-ID: <56clvm$n16@sjx-ixn3.ix.netcom.com> (raw)
In-Reply-To: 01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com
In article <01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com>, benjieg@corp.nsc.com
says...
>
>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.
>
>Thanks.
>
Not that I know of. The reboot part is easy: the pick-up-where-I-left-off is
not -- when you reboot the system has no idea of what is was doing with before
the reboot. Now, you may be able to hack something together: for instance,
your script leaves behind some semaphore (in the form of a particular file
somewhere)....somewhere in your system startup (varies depending on whether
you are 9.x or 10.x) you could have a process that checks to see if this file
exists. If it does, it performs some specific actions and deletes the
semaphore file for next time.
To do this you will go from:
*script A:
commands
REBOOT
more commands
to
*script A:
commands
create "continue" file
REBOOT
*startup:
if "continue" file exists do script B
*script B:
more commands
purge "continue" file
Depending on the exact nature of your task, this may or may not be trivial
--
Mark Landin
UNIX Sys. Admin
TD Williamson, Inc
next prev parent reply other threads:[~1996-11-13 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
1996-11-13 5:00 ` Andreas Woerner t-
1996-11-13 5:00 ` Jim Zahrndt
1996-11-13 5:00 ` Mark landin [this message]
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