Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-30-2005, 08:04 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
Question WinRar Cronjob

Hello Everyone,

I'm trying to setup a cronjob that performs an unrar command. Here is the background information:

WinRar Version: 3.4.1

cronjob profile:
RAR='-s -md1024'

20 18 * * * /usr/local/apache/cgibin/weblogs/

here's your typical shell script.
RAR='-s -md1024'
for i in `ls /usr/local/apache/cgi-bin/weblogs`
/usr/local/bin/unrar x $i $HOME

Here's the permissions:
-rwxrwxrwx 7075743.rar
-rwxrwxrwx 8003000.rar
-rwxrwxrwx 9003000.rar
-rwxrwxrwx 0003000.rar
-rwxrwxrwx 12003000.rar

the cron is setup with the correct profile and has executable permssions because he belongs to the chgroup.

Here is the output that I'm getting keeping it short:


UNRAR 3.41 freeware Copyright (c) 1993-2004 Alexander Roshal

Cannot open 7075743.rar
No files to extract

There are definitely files within these rar's. In fact, when you run the script it extracts the to the directory.

You guys have any ideas?

Old 06-30-2005, 08:50 PM   #2
LQ Newbie
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I wonder how much experienced Linux users laugh at newbies forums...

Here's the answer that worked for me:

in if you add the line...
cd $HOME line right before the execution of the command...

your ready to go.

Onward through the fog and towards that LPIC!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
winrar or zip owldbartle Linux - Newbie 10 11-16-2004 12:48 AM
Getting WinRar to work Mujju Linux - Newbie 10 11-14-2004 03:47 PM
WinRAR on Linux WarlockofVirgo Linux - Security 2 08-07-2004 10:03 PM
Unrar vs. Winrar sore Linux - Software 4 10-14-2003 12:32 PM
winrar with wine Rachid Boukhari Linux - Software 0 09-10-2001 05:41 AM

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration