USER question

Fairlight fairlite at fairlite.com
Tue Dec 16 15:31:04 PST 2008


At Tue, Dec 16, 2008 at 04:24:44PM -0500 or thereabouts, 
suspect Kenneth Brody was observed uttering:
> Quoting Fairlight (Tue, 16 Dec 2008 15:59:41 -0500):
> 
> > Is it possible to generate EOF on the outgoing stream to a program without
> > closing the entire USER session?  Likewise, how do you detect EOF on the
> > incoming stream from USER if the external isn't purposely built for use
> > with fP?
> 
> The only way to generate EOF on a pipe is to close the pipe.

Which...I of course knew. :) Guess I'm more tired than I thought,
re-reading the question and how I phrased it.  Not to mention being ill.
Bleh.

I just figured maybe you had a mechanic hidden away in there that wasn't
exactly advertised and didn't rely on the pipe.  Could have been more to it
than that.

Okay, so USER is pretty much useless in a scenario where you need to give
something STDIN from fP's STDOUT, and get the STDOUT from the process back.
There's no way to EOF it and read back all in one session.  I can think of
a few (ugly, ugly, UGLY) ways to work around this, but...  Yeah, the
suggestion of USER from earlier in the week is a non-starter.

mark->
-- 
"I'm not subtle. I'm not pretty, and I'll piss off a lot of people along
the way. But I'll get the job done" --Captain Matthew Gideon, "Crusade"


More information about the Filepro-list mailing list