feedback from system() etc. calls?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.


Re: feedback from system() etc. calls?

Quoted text here. Click to load it

This might be considered overkill, but POE::Wheel::Run does more
or less everything you might want.

Joost Diepenmaat | blog: | work: /

Site Timeline