Hi,
My potential client asked if he could remove the files on his shared hosting account using the following cron
1 * * * * rm /home/hosting/public_html/dailylog/*
Can rm command work on shared hosting account ?
Hi,
My potential client asked if he could remove the files on his shared hosting account using the following cron
1 * * * * rm /home/hosting/public_html/dailylog/*
Can rm command work on shared hosting account ?
Well, you could, but one has to ask why - surely fixing whatever application is generating the files would be best.
Either way, you should really use the -f qualifier on the command:
1 * * * * rm -f /home/hosting/public_html/dailylog/*
Are you aware that that will run rm 1 minute past each hour?
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Hi Chirpy,
Thanks a ton !!
Client just asked and I was not sure of this...may be I'll ask him to modify the interval to execute the job