Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: capturing output of system call inside a thread

by RichardK (Parson)
on Sep 03, 2015 at 16:10 UTC ( [id://1140900]=note: print w/replies, xml ) Need Help??


in reply to capturing output of system call inside a thread

What output is jumbled up? Did you mean stdout & stderr ? If so, then the docs for Capture::Tiny say this :-

capture_merged ... Caution: STDOUT and STDERR output in the merged result are not guarant +eed to be properly ordered due to buffering.

Replies are listed 'Best First'.
Re^2: capturing output of system call inside a thread
by that_guy (Novice) on Sep 03, 2015 at 16:14 UTC
    Sorry, I wasn't being specific. Output that belongs in Main thread (e.g. supposed to be visible on the screen) ended up in one of the log files, output printed in one of the worker sub ended up on the screen, and output that was supposed to be in sub1.log ended up in sub2.log

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found