New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Any way to put OS X to sleep via Terminal?


Post Reply New Thread Subscribe

 
Thread Tools
CaptSaltyJack

 
Member Since: Apr 15, 2007
Posts: 262
CaptSaltyJack is on a distinguished road

CaptSaltyJack is offline
Just wondering if it's possible to put the machine to sleep via a shell command.
QUOTE Thanks
giulio

 
giulio's Avatar
 
Member Since: Mar 19, 2007
Location: NY USA
Posts: 1,813
giulio is just really nicegiulio is just really nicegiulio is just really nicegiulio is just really nice
Mac Specs: iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano

giulio is offline
You need a shell script:

Quote:
#!/bin/bash
osascript << EOT
tell application "System Events"
sleep
end
EOT
It's not a one-liner.

schweb This has to be one of the best threads ever in MF history...
Cherokee This gets my vote for most innovative thread on Mac-Forums... ever.
QUOTE Thanks
CaptSaltyJack

 
Member Since: Apr 15, 2007
Posts: 262
CaptSaltyJack is on a distinguished road

CaptSaltyJack is offline
Very cool. thanks!
QUOTE Thanks

Post Reply New Thread Subscribe


« Front Row weirdness | I re-installed OS X 10.4 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Put Screen To sleep - Short Cut BrenMyster OS X - Operating System 1 05-02-2007 07:14 AM
Vista on boot camp does not goto sleep chp5592 Running Windows (or anything else) on your Mac 0 03-12-2007 09:34 AM
Changing MacBook's sleep mode visualpurple Apple Notebooks 5 03-05-2007 08:36 PM
How NOT to put my DVD drive to sleep? sabotage Switcher Hangout 0 10-04-2006 10:49 AM
Cant turn off monitor when i put my g5 to sleep? menace3054 Apple Desktops 1 04-19-2005 08:13 PM

All times are GMT -4. The time now is 12:35 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?