![]() |
Quote:
|
Yes. I wonder what the correct syntax is.
Chris |
Quote:
Quote:
I'm assuming he's using 'sudo shutdown -r now', since shutdown must know what to do. About options for shutdown: I found out by looking at the man page for it on a SCO Unix box, that it has an optional su argument : Code:
The optional su argument lets the system go single-userCode:
-i[0156abcsS]Leo |
Quote:
|
I know for a fact that you can use the terminal to drop into single user mode, from the GUI environment. I've done it.
And I'm 98% sure I did it with sudo shutdown now in 10.2.8 (I got the hint off of this site, actually.) I can't verify until I get home, though. EDIT: OK, I don't know if it was single user mode, but it was a similar screen, it was that or >console, or some equivalent. |
OK, I just tried it on 10.2.8 and it worked. It dumped you into single user mode. However, it doesn't work for Panther, so you'll have to stick to cmd-s on boot.
|
There must be a way in Panther...perhaps one of those other command line options.
Chris |
Quote:
Checked them here (no access to a Mac at the moment). Could not find how to set runlevels upon reboot, though. Perhaps a combination of tools would do the trick (sync, reboot, etc.) Though e.g. SCO Unix can indicate a run level for init to be applied upon reboot (1, s or S for single user), this apparently is absent from OS X... Leo |
Mac OS X 10.3: Starting Up in Console Mode
http://docs.info.apple.com/article.html?artnum=125085 Press the Command and S keys together as the computer starts up. You can also enter Console mode from within the Terminal application. If you are in Terminal, type: sudo shutdown now To switch back to the Mac OS X interface, type reboot and press the Return key. The computer restarts and you see the login dialog or the Mac desktop, depending on your login preferences. |
Quote:
|
yellow,
You are absolutely right...and in my Hall of Fame now... :) Should have read the whole thread... :D |
Sao, any idea what the o flag is all about? I only assume that it's the default flag because of:
yellow% sudo shutdown now Password: shutdown: -o requires -h or -r usage: shutdown [-] [-h | -p | -r | -k] [-o [-n]] time [warning-message ...] But there's no mention in the man pages.. unless there's more then one shutdown? |
http://www.svbug.com/cgi-bin/man.cgi?comd=8+shutdown
the manpage is out of rev with the dingus, and the dingus may be hobbled on OSX, re: runlevels |
shots in the dark...
I wonder if the reason that 'shutdown now' doesn't work in Panther has anything to do with journaling being on. I remember there was a bug also with 'sudo shutdown -h time' in 10.2.8 |
| All times are GMT -5. The time now is 04:51 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.