• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script and prompts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: do shell script and prompts
  • Next by Date: Re: do shell script "perl... " to find/replace in a string
  • Previous by thread: Re: do shell script and prompts
  • Next by thread: Re: do shell script and prompts
  • Index(es):
    • Date
    • Thread