cron job question

mrlayance

Senior member
Jul 11, 2002
366
0
0
I have the following .sh file running every hour

#
rm /home/website/mail/thebase.com/lance/spam

I have ran a few different tests with folders and files with extension, I just can't get this cron job to remove a file without a extension.
 

doan

Golden Member
Dec 17, 2000
1,445
0
76
don't you need rm -r to remove the spam directory

OR

rm /home/website/mail/thebase.com/lance/spam/*

to remove all the files in directory spam