• 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
[ OFFLIST ] Re: Running `expect` from inside AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ OFFLIST ] Re: Running `expect` from inside AppleScript


  • Subject: [ OFFLIST ] Re: Running `expect` from inside AppleScript
  • From: Christopher Stone via AppleScript-Users <email@hidden>
  • Date: Thu, 9 Dec 2021 23:28:37 -0600

> On Dec 08, 2021, at 23:58, Jenni via AppleScript-Users
> <email@hidden> wrote:
>
>> The proper syntax would be do script "<your script".
>
>       Thanks, Chris.  Between your suggestion, and finding a post mentioning
> the use of 3 backslashes instead of a single one, e.g.:
>
> expect \\\"password: \\\"
>
> I got it to work.  However, it prints the entire script to the Terminal
> window before processing it, so it looks like this:

Hey Marc,

Do you have a simple example of using expect password that I can test?

Perhaps a simple script to enable sudo?

TIA.


--
Take Care,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Running `expect` from inside AppleScript (From: Jenni via AppleScript-Users <email@hidden>)
 >Re: Running `expect` from inside AppleScript (From: Jenni via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Running `expect` from inside AppleScript
  • Previous by thread: Re: Running `expect` from inside AppleScript
  • Index(es):
    • Date
    • Thread