It is currently Tue, 19 Jun 2018 21:02:52 GMT

Author Message
 how to bash redirect stdout stderr without buffering
 I have a perl script that is{*filter*} requiring me to ctrl-c it.
I want to send the output (stdout) to the developer, but because it
crashes and I have to kill it, the redirect file is always empty, which
I suppose has something to do with buffering. Is there a way of doing an
unbuffered redirect from bash?

Tim Richardson
(search string: qweeblebeast)

Sent via http://www.**-**.com/
Before you buy.

 Thu, 05 Dec 2002 03:00:00 GMT   
 how to bash redirect stdout stderr without buffering

It could be perl that is buffering, not bash.  You might try setting
"$|" to 1 in your perl script.  (This is the "flush" variable.)

Although, I don't know why this would make anything "hang", nor do I
know what you mean by "developer".  It just sounds like you're getting
hung before the perl script has anything to write.

Dave Brown  Austin, TX

 Thu, 05 Dec 2002 03:00:00 GMT   
   [ 2 post ] 

Similar Threads

1. bash : how to redirect both stdout and stderr to append a file

2. redirect stderr without affecting stdout in tcsh ?

3. Redirecting stdout and stderr, and stderr

4. Redirect stdout and stderr....

5. redirecting stdout,stderr and stdin to /dev/null

6. Problem redirecting stderr+stdout in rsh script

7. forking, redirecting stdout & stderr

8. problem redirecting both stdout and stderr

9. redirecting stdin, stdout, stderr (like inetd)

10. Redirect stderr to stdout ?

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software