Expect commands in Applescript
Expect commands in Applescript
- Subject: Expect commands in Applescript
- From: Isaac Ordonez <email@hidden>
- Date: Mon, 2 Feb 2004 08:58:08 -0800
Hello,
I'm messing with the do shell script command in applescript and I had a
question someone might know, is there anyway to have the script pause
or wait for an output before sending more commands to the script? A
Very simple example is the passwd command.
I would like to have a do shell script "passwd user" and then have it
wait 3 seconds (OR expect certian text a la expect unix program) and
then give the passwd program my password (in a popup window) and then
wait again and change the users's password.
Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.