Re: writing to a named pipe (FIFO) fails
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