 |
 |
ssh restart NOT reboot
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2000
Location: New Haven, CT
Status:
Offline
|
|
Is it possible to remotely restart versus reboot? On a multi user machine running 10.2.8 I cannot make it restart into the user account set to Auto Login using 'sudo reboot'. Of course it works fine when I issue the Restart command within OS X's Finder when I'm at the machine.
thnx
gfitzy
|
|
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Why not just use AppleScript to tell the Finder to reboot?
I don't remember the exact code, but I think it'd be something like
sudo osascript "Tell application "Finder" restart"
Or just save the script as an application, and then:
open /path/to/the/script
The script would be really simple:
Tell application "Finder"
Restart
End tell
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jul 2001
Status:
Offline
|
|
What's the difference between restart and reboot? Does a restart involve temporarily turning off all components and a reboot only wipe memory and run the boot process again?
|
|
Actual conversation between UCLA and Stanford during a login on early Internet - U: I'm going to type an L! Did you get an L? S: I got one-one-four. L! U:Did you get the O? S: One-one-seven. U: <types G> S: The computer just crashed.
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Restart from the Finder asks all processes to quit. If any process fails to quit (for example if it has put up a Save/Don't Save dialog), then the shutdown process will be cancelled. If all processes quit, then the user is logged out, and the OS shuts down.
Reboot from the command line skips right to the OS shutdown procedures. I'm don't think it even attempts to kill processes first, so no files will be saved, and data loss is possible. However, this will force a restart even if crashed processes prevent a proper shutdown procedure, and it is quite preferable to a brute-force restart by killing power to the machine.
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Mar 2001
Location: Gosport
Status:
Offline
|
|
sudo shutdown -r now (I think)
|
|
Chris. T.
"... in 6 months if WMD are found, I hope all clear-thinking people who opposed the war will say "You're right, we were wrong -- good job". Similarly, if after 6 months no WMD are found, people who supported the war should say the same thing -- and move to impeach Mr. Bush." - moki, 04/16/03
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: May 1999
Location: Seattle
Status:
Offline
|
|
Originally posted by christ:
sudo shutdown -r now (I think)
That is what I use.
|
1.25GHz PowerBook

i vostri seni sono spettacolari
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2000
Location: New Haven, CT
Status:
Offline
|
|
thanks Tooki, the AppleScript method works fine.

|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|