Re^6: capturing output of system call inside a thread
by 1nickt (Canon) on Sep 03, 2015 at 20:07 UTC
|
Geez, you guys!
@BrowserUK: Maybe he means what he said in his first post:
Each of the worker threads is essentially independent and can run perl code as well as do system() calls.
@that_guy: Maybe he wanted you to explain specifically what you are doing (e.g. give an example of some of the "perl code" each thread is supposed to run) when he said:
if you can describe what it is that you need to do; rather than how you are currently trying to do "it"; then I might be able to help
You're welcome :-) I'm hoping to learn something here . . .
The way forward always starts with a minimal test.
| [reply] |
|
|
@1nickt
I have submitted code with a minimal example of what I want to do . In reality code that processes are going to run the most general things -- often submitting jobs to sungrid engine or calling standalone programs of which I have no control.
@BrowserUK
I guess I have drawn distinction between STDOUT and STDERR produced by perl code and by program run by system() call because they have shown to behave differently in my example code. Looks like you're suggesting that they should behave the same way. Perhaps they should - I'm not sure. We can go with your assumption that they should. In which case I want to capture STDOUT and STDERR of each worker "process".
| [reply] |
|
|
| [reply] [d/l] |
|
|
|
|
|
|
|
| [reply] |
|
|
I doubt anyone can teach you anything. Especially not what a sense of humour is!
Since you appear to have missed the point, in my good-natured post nudging the guy with question and the guy with the answer to just get on with it, I'll restate that I learn something from everything you share.
Now carry on :-)
The way forward always starts with a minimal test.
| [reply] |
|
|
|
|
|
|
|