How to obtain the unrar overall progress report?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I am using fedora's "native" unrar for my python
application - no dll version or whatever else is out there.

I have been trying to figure out how to obtain
unrar's overall progress report for inclusion into my
python code but so far I have not been successful.

I tried to turn off all of the comments except for
the progress report and all I have so far is:

unrar x -ierr +o- $file | sed -e 's/.*\([0-9]\+\)[%]$/\1/

I have tried: -c-, -inul, and many other switches but
none of these switches helped.

There is also a -id[c,d,p,q] command line
option but this does not seem to work and this is
option is not discussed in the man pages.

I noticed that if I add 2>&1 before the pipe,
but this removes the overall progress report
and shows only the results on a per-directory/file
results, which is not what I want.

I have also tried awk but unable to figure out how
to do it.

The problem I have is getting rid of the per
directory/file reports when all I want is the overall
progress report, 1-100%.

Any advice?

Thanks-
Dan

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux