Local login to remote computers

from the MD-EDU listserv

When sending commands to an Intel Mac, I use the following format: (This command logs out tech para into their account on an Intel.)

osascript <<EndOfMyScript
  tell application "System Events"
      keystroke "Tech Para"
      keystroke return
      delay 3.0
      keystroke "passwordgoeshere"
      delay 3.0
      keystroke tab
      keystroke return
      keystroke return
  end tell
EndOfMyScript

When sending commands to an non-Intel Mac, I use the following format: (This command logs out tech para into their account on a non-Intel.)

osascript -e 'tell application "System Events" to keystroke "techpara"'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke return'
osascript -e 'tell application "System Events" to keystroke "passwordgoehere"'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke return'