Re: unix programing question

2002-03-12 Thread Colin Watson
On Tue, Mar 12, 2002 at 02:43:14PM +0800, a wrote: > i use popen to run a command and read output from the command, > but the command outputs error message to something else than std out. > > how can i read the error message? Another homework question? Please don't. There's plenty of documentatio

Re: unix programing question

2002-03-12 Thread Crispin Wellington
On Tue, 2002-03-12 at 14:43, a wrote: > i use popen to run a command and read output from the command, > but the command outputs error message to something else than std out. > > how can i read the error message? popen is not really your command. use pipe() to create pipe pairs. One for stdout, s

Re: unix programing question

2002-03-12 Thread Sean 'Shaleh' Perry
On 12-Mar-2002 a wrote: > i use popen to run a command and read output from the command, > but the command outputs error message to something else than std out. > > how can i read the error message? > > i'll leave the list soon, please reply to [EMAIL PROTECTED] > Advanced Programming in the U

unix programing question

2002-03-12 Thread a
i use popen to run a command and read output from the command, but the command outputs error message to something else than std out. how can i read the error message? i'll leave the list soon, please reply to [EMAIL PROTECTED]