Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-25-2005, 10:28 PM   #1
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, 10:45 PM   #2
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, 10:54 PM   #3
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Thanks my friend,


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

All times are GMT -5. The time now is 07:29 PM.

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
Open Source Consulting | Domain Registration