Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'sudo reboot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sudo reboot
Authored by: vonleigh on Jun 17, '03 03:34:16PM

sudo reboot is a harsh command, I believe you'd use all unsaved documents, I wouldn't recommend doing it this way.

Something like:

sudo osascript -e 'tell application "Finder" to restart'

Would be much better. It would get canceled if there is unsaved data.



[ Reply to This | # ]
sudo reboot, be harsh in a cruel world
Authored by: Accura on Jun 18, '03 10:23:47AM

arr, but if your using the cli to install packages most likely the box is on a remote site, so u cant press "save" or "don't save" and the restart would time out

there has to be away of avoiding this because it would be nice to be able to restart and / or log out a user via the cli

jameso

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
sudo reboot, be harsh in a cruel world
Authored by: WAW401 on Jun 18, '03 06:55:42PM
there is ... use VNC to control the GUI remotely. for the few times I really need GUI access to my server remotely, it's perfect. For security's sake, don't add a firewall rule to open the port. Tunnel the connection through ssh from the machine you're sitting on ... ssh -L 5900:localhost:5900 remote_ip_or_dns

Then use localhost & port 5900 in your vnc client. You can have the remote machine always running the vnc server, or run it from the ssh shell.

[ Reply to This | # ]
sudo reboot, be harsh in a cruel world
Authored by: yellow on Jan 21, '04 02:42:34PM

Of course, if you go this route, isntalling via the CLI is pointless since you can just do it via the GUI.



[ Reply to This | # ]
sudo reboot
Authored by: msk on Nov 09, '04 09:04:38AM

The applescript is all very nice, but if no one is logged into the remote machine is does not work, the response is "29:36: execution error: Application isn't running (-600)" (tested with OS X 10.3.5)



[ Reply to This | # ]