View Single Post
  #5  
Old January 28th, 2009, 01:40 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Random: PHP RAR Archive Updating

The suggestion for a -w switch lead me on the right path. I added something under /tmp for it, and it then tried to add the first file. Unfortunately, it added the file in a corrupt manner. Then I stumbled across this little gem in /usr/share/doc/rar/rar.txt:

Quote:
In a UNIX environment you need to quote wildcards to avoid them
being expanded by shell. For example, this command will extract
*.asm files from RAR archives in current path:

rar e '*.rar' '*.asm'
d'oh!
Reply With Quote