Course completion survey




Unix commands

Remote login
For MS (Use the logout current user command from the manage menu first)
osascript -e 'tell application "System Events"' \
-e 'key code 126' \
-e 'keystroke return using option down' \
-e 'keystroke "admin"' \
-e 'delay 1' \
-e 'keystroke tab' \
-e 'delay 1' -e 'keystroke "LOCALPASSWORD"' -e 'delay 0.5' -e 'keystroke return' \
-e 'end tell'

For HS (Use the logout current user command from the manage menu first)
osascript -e 'tell application "System Events"' \
-e 'delay .5'
-e 'key code 53' \
-e 'delay 1' \
-e 'key code 126' \
-e 'keystroke return using option down' \
-e 'keystroke "admin"' \
-e 'delay 1' \
-e 'keystroke tab' \
-e 'delay 1' -e 'keystroke "LOCALPASSWORD"' -e 'delay 0.5' -e 'keystroke return' \
-e 'end tell'

Keycodes reference
http://lists.apple.com/archives/Applescript-users/2004/Apr/msg00076.html

BHT

/Users/admin/MyApps/BigHonkingText -p 35 "Hello"

/Users/admin/MyApps/BigHonkingText --help

Setweb proxy state

networksetup -setwebproxystate Airport off

Change password
rm -Rf /Users/student/Library/Keychains
dscl . -passwd /Users/student Password