Sample Header Ad - 728x90

cron to delete after executing

1 vote
1 answer
2345 views
I have a cron job which unzips a file and executes it. The cron is set to unzip, execute and delete the .zip file after. It's executing fine but it's not deleting the file. Here's the cron: /usr/bin/wget -q -nd --delete-after 'URL/index.php?option=com_fwrealestate&task=processPlugin&plugin=importmls' I tried to add a second cron which would delete the files that are older than 15 days from the folder but this seems to "bother" the first cron to execute properly. The second cron I used was:
/usr/bin/find /directory/ -mtime +15 -exec /bin/rm {} \; > /dev/null 2>&1
Asked by Petros (11 rep)
Oct 17, 2012, 08:21 PM
Last activity: May 15, 2025, 07:14 PM