| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I use perl quite often as a glue to tie together command line tools under Linux. Recently I have been using tools that have substantial run times. IN light of this, some of the tools output progress reports, either as moving bars, or just messages at key stages. At the moment, sadly, I only get these messages when the command has finished, which is not so pleasant; I would like to see them as they are generated. Has anyone got a variant of system, popen etc that has worked through the various issues of buffering, differentiating STDOUT, SDTERR etc? Security is not an issue for me; these scripts are running stand alone from the command line. BugBear |
|
#2
| |||
| |||
| bugbear <bugbear@trim_papermule.co.uk_trim> writes: > Has anyone got a variant > of system, popen etc that has > worked through the various issues > of buffering, differentiating STDOUT, SDTERR etc? This might be considered overkill, but POE::Wheel::Run does more or less everything you might want. http://poe.perl.org/?POE_Cookbook/Child_Processes -- Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/ |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.