Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 05:28:47 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: CRON move and chmod assitance  (Read 112 times)
minionsweb
Newbie
*
Offline Offline

Posts: 5


« on: June 04, 2008, 01:31:12 PM »

Let you guess I am new to cron.

First, I am attempting to move all files from an upload directory to a download directory:

*/5 * * * * mv /public_html/FTPz/wavz_upload/*.*  /public_html/FTPz/wavz_download/-=Wavs & AUs extracted=-/New unsorted/

Then change the permissions of the moved dirs and files recursively:

*/5 * * * * chmod -R 544 /public_html/FTPz/wavz_download/-=Wavs & AUs extracted=-/New unsorted/

I see nothing occuring, and see no errors in the log.
Am I specifying this correctly?
How can I see a log of the activity?
I presume there is some verbose commend I can use, right?
Help would be greatly appreciated.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3400



« Reply #1 on: June 04, 2008, 03:37:45 PM »

Your full directory path is /home/ACCOUNTNAME/public_html/.... There's no such thing as /public_html/. You may  be able to get away with just public_html/..., assuming you're starting in /home/ACCOUNTNAME/ (that seems to be the usual case, but I can't guarantee it).

Second, this is Linux. Do not use spaces (blanks) or any verboten characters in directory names and file names. A-Z, a-z, _, 0-9, and . should all be safe. Maybe -, probably not =. Also, don't forget to create these directories before trying to move stuff into them.
Logged

minionsweb
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: June 06, 2008, 09:01:27 AM »

Got it, thanks for the assist.
Took a bit of tweaking but it is performing as needed now.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM