Personal tools
You are here: Home Members kfuller Ever Try Logging in an Entire Lab Full of Kindergartners?
Navigation
 

Ever Try Logging in an Entire Lab Full of Kindergartners?

Document Actions
Apple Remote Desktop and a few lines of code allows you to log a user onto multiple machines simultaneously.

I found this little gem at macosxhints.com that I think might prove useful to many TISs. Let's say you have a lab full of learners and they only need access to the web but don't plan to save any documents. For example, a teacher wants a group of students to visit the Ticket To Read site so she/he runs frantically from one machine to the next logging students in.


Using Apple Remote Desktop, send the following UNIX Command to as many machines as you like to log them in. I suggest sending the command as the user you are logging in as. Note that this will only work if the machine is currently at the login screen.

osascript -e 'tell application "System Events" to keystroke "LOGIN_NAME"'; \
osascript -e 'tell application "System Events" to keystroke tab'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke "PASSWORDHERE"'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke return'

Replace LOGIN_NAME and PASSWORD with the proper values, of course...

 


by Ken Fuller last modified Oct 11, 2008 12:14 PM
« November 2008 »
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Related terms
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: