Have
you tried piping the stderr output to stdout?
in
your command, "ls -l 2>&1" redirects errors to output, which would allow
your capture.
-----Original Message-----
From: redhat-devel-list-admin@xxxxxxxxxx [mailto:redhat-devel-list-admin@xxxxxxxxxx] On Behalf Of mara ailiez sy
Sent: Friday, January 16, 2004 8:40 AM
To: redhat-devel-list@xxxxxxxxxx
Subject: question about stderrHelo...I am currently making a program using the popen function. However, in using the popen function in C to execute Linux commands, the errors encountered in the execution cannot be stored in the file stream. Is there a way for me to get the errors encountered in the execution?thanks very much =)
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes