Re: do shell script and prompts
Re: do shell script and prompts
- Subject: Re: do shell script and prompts
- From: Steve Roy <email@hidden>
- Date: Thu, 18 Mar 2004 09:41:15 -0500
Steve Roy <email@hidden> wrote:
>
I can't try it right now but from the looks of the documentation and your
>
example, I think this will work. Thanks!
I'm responding to my own post to say I found an easier solution: using echo and
pipes. Here's the complete solution.
set theLocalDir to "'/Path/To/My/Local/Folder'"
set theCVSRoot to ":pserver:email@hidden:/path/to/repository"
set thePassword to "abc"
do shell script "cd " & theLocalDir & "; echo " & thePassword & " | cvs -d " &
theCVSRoot & " login"
Works like a charm. :)
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.