Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Restart Machine (https://www.shirt-pocket.com/forums/showthread.php?t=2660)

ShosMeister 07-28-2007 11:34 AM

Restart Machine
 
Is there a way of setting it to restart the machine from the internal/main drive after the backup is complete? There are options to shutdown and reboot to the lasted backup, but, we just want to have the server restarted.

Maybe it needs to be linked to Automator/QuickSilver/AppleScript??

Thanks!!!!

dnanian 07-28-2007 12:07 PM

It's not built in, no, but thanks for the suggestion.

ShosMeister 08-03-2007 08:34 PM

Looking through the users guide and the sample scripts, there is a script to simply restart the machine. What I don't know is where the script that I created and scheduled is saved so that I can edit that to not change the startup volume.

Could you point me in the right direction?

dnanian 08-03-2007 09:02 PM

I'm not sure what you mean. If you saved it somewhere... it's where you saved it...?

ShosMeister 08-03-2007 09:52 PM

I didn't save it. I was referring to the scheduled jobs. From reading here and the users guide, it is all based on apple scripts. So, I'm guessing, there is a script somewhere that has the backup job that I've created and schedule.

I was thinking that would be the place to edit and tell it to restart the server from the original startup volume rather than from the one that was just backed up.

I found a Restart script in the package contents that I figured I could copy into the saved job script - since I couldn't create a custom copy and include it. Just trying to figure out where to copy it into.

Thanks!!!

dnanian 08-03-2007 09:56 PM

Well, no -- you'd want this as an "on successful completion" shell script in the main window...

ShosMeister 08-04-2007 11:00 AM

That would be the best thing yes, but, since it's all scripted, couldn't it just be added to the end of the copy script? I'm guessing you are saying no - rats! I guess I need to look at how to either execute an apple script from the shell or come up with the equivalent to tell application "System Events" to restart in the shell.

Thanks!!!!

ShosMeister 08-04-2007 11:14 AM

The "on successful completion" you are referring to is under the "Advanced" tab correct? I managed to find this, but, not sure where to put it:

Quote:

Close down the system at a given time.
Shutdown provides an automated shutdown procedure for super-users to nicely notify users when the system is shutting down, saving them from system administrators, hackers, and gurus, who would otherwise not bother with such niceties.

SYNTAX
shutdown [-] [-fhkrn] time [warning-message ...]

Options -f Shutdown arranges, in the manner of fastboot(8), for the file sys-
tems not to be checked on reboot.

-h The system is halted at the specified time when shutdown execs
halt(8).

-k Kick every body off. The -k option does not actually halt the sys-
tem, but leaves the system multi-user with logins disabled (for all
but super-user).

-n Prevent the normal sync(2) before stopping.

-r Shutdown execs reboot(8) at the specified time.

time Time is the time at which shutdown will bring the system down and
may be the word now (indicating an immediate shutdown) or specify a
future time in one of two formats: +number, or yymmddhhmm, where
the year, month, and day may be defaulted to the current system
values. The first form brings the system down in number minutes
and the second at the absolute time specified.

warning-message
Any other arguments comprise the warning message that is broadcast
to users currently logged into the system.

- If `-' is supplied as an option, the warning message is read from
the standard input.

Example
shutdown -h now We are going to shut the computer down right now.
Any ideas?

dnanian 08-04-2007 11:26 AM

Why not use osascript to run the appropriate script command?


All times are GMT -4. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.