Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jim Zahrndt <jzahrndt@cbsofil.com>
To: Benjie Gandionco <benjieg@corp.nsc.com>
Subject: Re: Inserting a system reboot in crontab script
Date: 1996/11/13	[thread overview]
Message-ID: <3289EFA0.7AB3@cbsofil.com> (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.
The only way I can think of implementing this type of action sequence
is:

	1) In your crontab script have the last two lines be like:
		touch /etc/LeftOffHere
		shutdown -r now

	2) In your system startup file/directory (depends on OS)
		In /etc/rc.local add a couple of lines like:
			if [ -e /etc/LeftOffHere ] then
				rm /etc/LeftOffhere
				# enter the pathname of the script to execute if
				# this circumstance is met or the lines to execute
				# to continue on with the original crontab script.
			fi

		In /etc/rc3.d create a script file similiar to the RC.LOCAL entry.

Hope this helps.

Jim Zahrndt (jzahrndt@cbsofil.com)



  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 ` Andreas Woerner t-
1996-11-13  5:00 ` Jim Zahrndt [this message]
1996-11-13  5:00 ` Mark landin
1996-11-13  5:00 ` Paul D. Chapin
1996-11-18  5:00   ` Michael Mohr
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