• 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: shell script with stdin from Applescript...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script with stdin from Applescript...


  • Subject: Re: shell script with stdin from Applescript...
  • From: Loukas Kalenderidis <email@hidden>
  • Date: Thu, 3 Jul 2003 10:22:26 +1000

On Thursday, July 3, 2003, at 09:16 AM, David Crowe wrote:

I want to run a shell script with input to be created by an applescript, something like:


do shell script "/usr/bin/unixapp <<$
line 1
line 2
line 3
$"


I can get this (the part in quotes, obviously) working fine in Terminal, but I get an "fread error 0" when trying this from AppleScript.

do shell script "cat <<END\nfoo\nbar\nEND"

returns:
"foo
bar"

Works for me, where the line endings are \n's. I didn't get that fread error when using \r's either...

----

Loukas Kalenderidis
Angier Consulting Pty Ltd
_______________________________________________
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.

References: 
 >shell script with stdin from Applescript... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: shell script with stdin from Applescript...
  • Next by Date: Re: Entourage scripts works on *some* computers
  • Previous by thread: Re: shell script with stdin from Applescript...
  • Next by thread: Re: shell script with stdin from Applescript...
  • Index(es):
    • Date
    • Thread