Difference between revisions of "Power Up Workstation Script"

From CDOT Wiki
Jump to: navigation, search
(Created page with '#!/bin/bash # User can create an icon to run this file # Note: This file requires execute permissions to run # Note: May require "wakeonlan application to be installed first se…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#!/bin/bash
+
#!/bin/bash
 
+
# User can create an icon to run this file
+
# User can create an icon to run this file
# Note: This file requires execute permissions to run
+
# Note: This file requires execute permissions to run
# Note: May require "wakeonlan application to be installed first
+
# Note: May require "wakeonlan application to be installed first
 
+
set $(cat /home/teacher/bin/workstationMacAddress.txt)
+
set $(cat /home/teacher/bin/workstationMacAddress.txt)
for x
+
for x
do
+
do
 
+
  wakeonlan -i 192.168.1.255 $x > /dev/null
+
    wakeonlan -i 192.168.1.255 $x > /dev/null
  sleep 1
+
    sleep 1
 
+
done
+
done

Latest revision as of 10:00, 22 June 2011

#!/bin/bash

# User can create an icon to run this file
# Note: This file requires execute permissions to run
# Note: May require "wakeonlan application to be installed first

set $(cat /home/teacher/bin/workstationMacAddress.txt)
for x
do

   wakeonlan -i 192.168.1.255 $x > /dev/null
   sleep 1

done