Page 1 of 1

Trying to rar file but encountering issues

Posted: August 22nd, 2010, 12:03 am
by uniacid
So I'm trying to rar a file after post processing but it seems to not be able to rar the filename because of spaces,

I've tried some different things and tried encapsulating the var in '' and "

ex: rar -m0 a $1.rar $1/

Basically trying to run this command and then if possible move the file to a desired local location,

Any help would be appreciated.

Re: Trying to rar file but encountering issues

Posted: August 22nd, 2010, 7:21 am
by sweetie

Code: Select all

cd "$1"; rar a "$3.rar" * -m0 && mv -fv "$3.rar" "/dest/in/ation"
You could replace the wildstar with: "$1", to retain the entire directory structure (from root.).

Re: Trying to rar file but encountering issues

Posted: August 22nd, 2010, 1:05 pm
by uniacid
Thanks that did the trick!