From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,c0b68e7f7e519d7b X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,c0b68e7f7e519d7b X-Google-Attributes: gidfee84,public From: m555@ix.netcom.com (Mark landin) Subject: Re: Inserting a system reboot in crontab script Date: 1996/11/13 Message-ID: <56clvm$n16@sjx-ixn3.ix.netcom.com>#1/1 X-Deja-AN: 196377182 references: <01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com> content-type: Text/Plain; charset=US-ASCII organization: Disorganized x-netcom-date: Wed Nov 13 6:29:10 AM PST 1996 mime-version: 1.0 newsgroups: comp.unix.admin,comp.unix.osf.osf1 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