Created
November 21, 2016 22:53
-
-
Save gocarlos/b4be461db6114f74254fcd33dd0e5f3c to your computer and use it in GitHub Desktop.
Send a magic pack when calling a website (with php and etherwake )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "<br/>"; | |
echo "<br/>"; | |
$output =shell_exec('wakeonlan xy:xy:xy:xy:xy:xy'); | |
echo "<pre>$output</pre>"; | |
echo "wake up workstation"; | |
echo "<br/>"; | |
echo "<br/>"; | |
$output =shell_exec('wakeonlan xy:xy:xy:xy:xy:xy'); | |
echo "<pre>$output</pre>"; | |
echo "wake up NAS"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment