LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2005, 09:28 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
crond job to remove files


Dear all,

I tried to create a crond job to remove files. here is what I have in my crontab:

30 * * * * rm * /var/www/html/downloads

What I tried to achieve is that it remove all the viles inside the downloads directory, but seems like it is not doing its job.

Did I did something wrong here?

Thanks in advance,
 
Old 01-25-2005, 09:45 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
maybe you meant rm /var/www/html/downloads/* ?
 
Old 01-25-2005, 09:54 PM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Thanks my friend,
 
  


Reply



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
crond problem,after success run the job,will mailto root singying304 Linux - Software 1 11-29-2005 05:33 PM
remove all files with same extension? scratchnz Linux - General 1 11-04-2005 03:40 AM
cron job to delete files based on attributes alpha21 Linux - General 3 11-09-2004 12:06 PM
howto delete files via ftp from cron job ? cccc Linux - Networking 2 01-31-2004 06:49 PM
How can I remove a printing job abe_asu Linux - Newbie 1 09-24-2001 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

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