RE: question about stderr
"Randy Gillis" <[email protected]> Fri, 16 Jan 2004 08:52:19 -0500
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <000401c3dc37$f5bf68e0$3e4110ac@rgillisxp> |
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: [email protected] [mailto:[email protected]] On Behalf Of mara ailiez sy Sent: Friday, January 16, 2004 8:40 AM To: [email protected] Subject: question about stderr Helo... 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 <http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/e vt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus> the "Signing Bonus" Sweepstakes