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!
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.
Logged In: YES
user_id=523378
My fault. I hope it's attached this time. I'm not seeing
your your attachment...:-?
par2extract script
Logged In: YES
user_id=523378
attached rar2slave script by Ira Snyder
rar2slave
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.
Logged In: YES
user_id=523378
attached rar2slave script by Ira Snyder
rar2slave