Cron job output files
I have set up a cron job in my PHP project by using cpanel cronjob tool. But it is creating output files 开发者_如何学Cin root directory. I have find out a solution to block these output file creation, but my question is, if i will delete these already created files, will it cause any problem or will it affect cronjob program?
It most likely wont(barring some sort of dependency of the cron job on the existence of a particular output file). You can block output file creation by adding 1>/dev/null 2>/dev/null to the end of the cron command.
精彩评论