• 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: writing to a named pipe (FIFO) fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing to a named pipe (FIFO) fails


  • Subject: Re: writing to a named pipe (FIFO) fails
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 22 Nov 2006 10:11:11 -0500

On 11/21/06, Cameron Hayne <email@hidden> wrote:
Yes, the fifo & listening process is all set up just fine. Note that
I mentioned that writing to the fifo via 'do shell script "echo ..."'
worked as expected.

Ah, right. The shell will block if there's no reader. My bad.

I get the same result - generic I/O error (-36) on attempt to open
with write permission, although AppleScript will read from a FIFO
fine.

I believe what's happening is that AppleScript is trying to open the
pipe for read and write at the same time; there's no syntax in
AppleScript's open command to open for write-only.  And you can't open
a pipe for rw, only for either r or w.


-- Mark J. Reed <email@hidden> _______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >writing to a named pipe (FIFO) fails (From: Cameron Hayne <email@hidden>)
 >Re: writing to a named pipe (FIFO) fails (From: Malcolm Fitzgerald <email@hidden>)
 >Re: writing to a named pipe (FIFO) fails (From: Cameron Hayne <email@hidden>)

  • Prev by Date: [ANN] November Boston AppleScript User Group Meeting
  • Next by Date: [ann] Ruby appscript 0.2.0 released
  • Previous by thread: Re: writing to a named pipe (FIFO) fails
  • Next by thread: Re: writing to a named pipe (FIFO) fails
  • Index(es):
    • Date
    • Thread