From: Simon Wing-Tang <swingtan@vttsvic1.telecom.com.au>
Subject: Re: Inserting a system reboot in crontab script
Date: 1996/11/14 [thread overview]
Message-ID: <328B6DD7.5887@vttsvic1.telecom.com.au> (raw)
In-Reply-To: 01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com
Benjie Gandionco 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.
>
> Thanks.
I think it is possible, but I'd like to know why you want to do it.
It's not a good idea to reboot the box while your not there, just in
case something goes wrong. That said, here's something that may work.
Split the script into 2 sections, 1 up to the reboot and 1 after the
reboot. Just before the reboot write a temp file to a particular
directory, then sync the disks and issue a reboot. In the system
stratup files add a linr to check for the existance of the file the
script wrote, if it exists then run the second part of the script.
Don't forget to clean up the temp file when finished, still can't think
of why you'd want to reboot in the middle of a script though ?
Simon.
--
--------------------------------------------------------------------
| Simon Wing-Tang |
| Systems Administrator |
| Telstra Learning " If at first you don't succeed.. |
| swingtan@vttsvic1.telecom.com.au use a bigger hammer ! " |
| http://www.alexia.net.au/~www/swt |
| PH: 613-9295-4223 |
--------------------------------------------------------------------
next prev parent reply other threads:[~1996-11-14 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 ` Mark landin
1996-11-13 5:00 ` Jim Zahrndt
1996-11-13 5:00 ` Andreas Woerner t-
1996-11-14 5:00 ` Simon Wing-Tang [this message]
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