On Fri, Sep 01, 2000 at 04:10:40PM -0700, Don Lewis wrote:
> On Sep 1,  3:24pm, Peter Pentchev wrote:
> } No, I don't think you can do anything cheaper than a fork and
> } a pipe(2). popen(), as suggested in another message, is pretty
> } much the same.  I don't think stdio has a hook to capture all
> } the data a process is sending to a stream, and pass it to some
> } routine - that would be perfect, but unfortunately, I am not
> } aware of such a thing.  I might be wrong though.
> 
> It's not very widely implemented, so any code using it won't be
> portable, but take a look at the man page for fuopen(3).

I presume you meant funopen() :)
Hmm this one looks really nice.  I guess what the original poster
wanted would be a call to fwopen(), then parsing the 'output' into
lines and passing those to syslog().. I'll try it later today.
Thanks for the pointer!

G'luck,
Peter

-- 
If I had finished this sentence,


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to