Menu

#4 par2extract script

open
5
2005-08-30
2005-08-30
No

Received this very interesting script from Lars
Janssen. Here's how he describes it:

I've attached a Perl script which you, or maybe some
other Klibido users,
might find useful.

If I have a directory like
~/klibido/decoded/alt.binaries.whatever where there
are lots of rar and par files all over the place, I can
cd into that
directory and run my par2extract script. It will:

1. Pick the first par2 file it finds, work out which
other par and rar files
are in the same set, and check them all.
2. If all the parts are there, extract and move into a
subdirectory
'extracted'
3. Move all the original rar/par files into a
subdirectory 'used' ready for
the user to delete.

I have found it quite handy myself although if you know
a better solution I'd be interested to know...

I'll add this to the homepage and incorporate it in the
KLibido dist....thanks Lars!

Discussion

  • Ira Snyder

    Ira Snyder - 2005-09-03

    Logged In: YES
    user_id=755929

    Looks like you forgot to attach the script here, and it's not in cvs either. I'm interested in seeing it.

    I've got a bash script that does roughly the same thing.
    My svn of it is here: http://irasnyder.com/svnweb/index.cgi/programming/log/shell_programs/rarslave

    I'm going to attach a version also.

     
  • Alessandro Bonometti

    Logged In: YES
    user_id=523378

    My fault. I hope it's attached this time. I'm not seeing
    your your attachment...:-?

     
  • Alessandro Bonometti

    par2extract script

     
  • Alessandro Bonometti

    Logged In: YES
    user_id=523378

    attached rar2slave script by Ira Snyder

     
  • Alessandro Bonometti

    rar2slave

     
  • Ira Snyder

    Ira Snyder - 2005-09-04

    Logged In: YES
    user_id=755929

    Also, for anyone downloading my "rarslave" script, there is a bug with >=findutils-4.2.23. Please get my latest version from subversion to fix it. (Also note that the fix breaks rarslave on versions of findutils <4.2.23.)

    Here is my subversion for it:
    http://irasnyder.com/websvn/filedetails.php?repname=programming&path=%2Fshell_programs%2Frarslave&rev=0&sc=0

    Sorry about the long URL.

    Also of note to people downloading rarslave: my program does delete everything after it is extracted successfully, without asking for confirmation. If anyone wants features added, I suppose I can take requests :) It also handles "par2 split" files, which QuickPAR on windows creates. These are just split binary files with par information attached.

    I haven't yet looked at the attached perl script, but maybe I can get some ideas from it.

     
  • Alessandro Bonometti

    Logged In: YES
    user_id=523378

    attached rar2slave script by Ira Snyder

     
  • Alessandro Bonometti

    rar2slave

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.