Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Progress Bar in Perl script

by Rhandom (Curate)
on Jul 10, 2012 at 14:36 UTC ( [id://980880]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'open my $fh, "|-", q{zenity --title=Working --width=400 --pro
    +gress --text="Still going..." --percentage=50 --no-cancel --auto-kill
    + --auto-close}; select $fh; $|=1; select(undef,undef,undef,.1),print 
    +$fh "$_\n#Now on $_...\n" for 1..100'
    
  2. or download this
    use IO::Handle; # for older perls
    use Time::HiRes qw(usleep);
    ...
            last;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found