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 >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Aug 17, 2016 9:07 PM

Reply
Question marked as Best reply

Posted on Aug 18, 2016 4:18 AM

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

1 reply
Question marked as Best reply

Aug 18, 2016 4:18 AM in response to GalenLezmor

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.