开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜