0

I couldn't find any documentation/examples regarding this usage syntax, are we allowed to use @reboot and 23 hours daily in a single command?

I have this cron job schedule to delete my tomcat logs every day 23 hours, now I want this same script need to be run after reboot too. Any suggestions?

0 23 * * * find /tomcat/logs/*.log -mtime +1 -delete

EDIT:

I am not asking about why my cron tab is not working (or) how to work with cron tab, my question is more about can we have command with @reboot as well as hours in single command?

sebix
  • 4,432
kosa
  • 115

0 Answers0