Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > ssh restart NOT reboot

ssh restart NOT reboot
Thread Tools
Dedicated MacNNer
Join Date: Feb 2000
Location: New Haven, CT
Status: Offline
Reply With Quote
Mar 26, 2004, 05:02 PM
 
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
Reply With Quote
Mar 26, 2004, 05:13 PM
 
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
Reply With Quote
Mar 26, 2004, 06:32 PM
 
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
Reply With Quote
Mar 26, 2004, 07:24 PM
 
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
Reply With Quote
Mar 27, 2004, 10:12 AM
 
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
Reply With Quote
Mar 27, 2004, 02:49 PM
 
Originally posted by christ:
sudo shutdown -r now (I think)
That is what I use.
1.25GHz PowerBook


i vostri seni sono spettacolari
     
GFitzy  (op)
Dedicated MacNNer
Join Date: Feb 2000
Location: New Haven, CT
Status: Offline
Reply With Quote
Mar 29, 2004, 10:49 AM
 
thanks Tooki, the AppleScript method works fine.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2