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: Michael Mohr Subject: Re: Inserting a system reboot in crontab script Date: 1996/11/18 Message-ID: <328F9689.5B8F@ait.ac.nz>#1/1 X-Deja-AN: 197154882 references: <01bbd05d$a6174760$99d3bb8b@pc-blg.nsc.com> <56cquo$pem@tom.amherst.edu> to: "Paul D. Chapin" cc: benjieg@corp.nsc.com content-type: text/plain; charset=us-ascii organization: Auckland Institute of Technology, NZ mime-version: 1.0 newsgroups: comp.unix.admin,comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (Win16; I) 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?