[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tmpnam usage warning

Steinar H. Gunderson wrote:

> Why can't you just set up a pipe, fork, connect stdout of the child to one
> end of the pipe, and exec the program?

Thanks, reading about 'pipe' led me to 'popen' which pretty much
automatically does what you suggest.



Colin Tuckley      |  colin@tuckley.org  |  PGP/GnuPG Key Id
+44(0)1903 236872  |  +44(0)7799 143369  |     0x1B3045CE

A door is what a cat is perpetually on the wrong side of. - adapted from
Ogden Nash

Reply to: