do shell script and prompts
do shell script and prompts
- Subject: do shell script and prompts
- From: Steve Roy <email@hidden>
- Date: Wed, 17 Mar 2004 22:15:27 -0500
Good evening,
Is there a way to handle prompts with 'do shell script'? What I'd like
to do is run the 'cvs login' command but it gives a command line prompt
for the password. I've tried to put the password on a new line like
this:
set thePassword to "abc"
do shell script "cvs -d " & theCVSRoot & " login; " & thePassword
But that didn't work. The result was:
CVS password:
cvs [login aborted]: authorization failed: server roydesign.dyndns.org
rejected access
sh: line 1: abc: command not found
Is there a way to do this?
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.