Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Defeating OS buffering?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Eric Schwartz, post: 4742167"] I'm trying to use Perl to automate a specific test process, but OS buffering is defeating some of the main utility of it. I run a program like this: open(TEST, "$testcmd |") or die "bah-- $!"; while(<TEST>) { # do stuff } close(TEST); Part of the problem here is that the test referred to in $testcmd is a bash script that execs a C program, which I do not have source to. This C program doesn't print a lot of output, so as a consequence, I don't see any of it until the C program exits. Is there any way, short of modifying the C program, that I can defeat the OS buffering of the C program's output? -=Eric, fully expecting the answer to be "no". :( [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Defeating OS buffering?
Top