
Originally Posted by
bhupendra2895
I created a cron job to delete all files in a temperory directory once a day at 13:00. But it is not working. Since I don't have any experience with cron jobs, there can be mistake. Please tell me what mistake I have done.
This is the format :-
(MINUTE HOUR DAY MONTH WEEKDAY COMMAND ACTIONS)
(00 13 * * * rm-R/home/bhupendr/public_html/temp/*)
I am on starka with free hosting plan. If it has anything to do with it.
change the command to
Code:
find /home/bhupendr/public_html/temp -exec rm -f {} \;