Enable Wake On LAN (WOL) from terminal command line
What's the command to enable this feature using terminal. I don't have GUI access to my Mac remotely and can only ssh to it remotely.
Any help is appreciated.
Thanks
MacBook Pro
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
What's the command to enable this feature using terminal. I don't have GUI access to my Mac remotely and can only ssh to it remotely.
Any help is appreciated.
Thanks
MacBook Pro
Hello
You may use pmset(1). Something like the following (when used locally).
#!/bin/bash # temporary change effective until restart # no need to be run as root (not writting to setting file) pmset force -a womp 1
or
#!/bin/bash # permanent change # must be run as root (writing to setting file) sudo pmset -a womp 1
Tested under OS X 10.6.8.
Good luck,
H
Hello
You may use pmset(1). Something like the following (when used locally).
#!/bin/bash # temporary change effective until restart # no need to be run as root (not writting to setting file) pmset force -a womp 1
or
#!/bin/bash # permanent change # must be run as root (writing to setting file) sudo pmset -a womp 1
Tested under OS X 10.6.8.
Good luck,
H
Enable Wake On LAN (WOL) from terminal command line