How can I automate a reboot/restart?

mindbend

Registered
I've got a little iMac acting as a file server in a small office. For some reason, Retrospect is not fully cooperating with its twice-a-day backups, though a reboot fixes it. Sometimes Retrospect launches/backs up, but then for no appraent reason, it stops doing so and I find I've gone days without a backup.

Because of this, I would like to create perhaps an Applescript that simply reboots the machine at, say, 4 AM. Does anybody know exactly how I can do this (like, specifically what the script would say)? I don't know anything about Applescript.

Before anyone sends me links of Appescript sites, don't waste your time. I'm only marginally interested in solving this problem, so either I get the help here, or not. Thanks anyway.

Better yet, is there a way in Prefs to create an automated restart?

Thanks!
 
Create a cron task in root's crontab that issues a shutdown -r now command and run it at your specified interval.

(Note: Editing root's crontab is widely considered a security hole, but I still thought I would present it as a possible solution. It would do as you ask, at least.)
 
Back
Top