Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing to a named pipe (FIFO) fails



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.