0

I installed nginxcp on my server and they recommend to add the following cron:

0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client

I already added it to var/spool/cron and restarted crond service, but it just doesnt work.

From time to time, I need to run the command /usr/sbin/tmpwatch -am 1 /tmp/nginx_client on ssh to clear the tmp.

Any idea, why the command is not running from the crontab?

MadHatter
  • 78,442
  • 20
  • 178
  • 229
valter
  • 689
  • 5
  • 13
  • 23

1 Answers1

0

Crontab is the program used to install, deinstall or list the tables used to drive the cron daemon in Cron. Edit the crontab file to be use as below:

#crontab -e

and then insert above rule that will run after every one hour. then restart crond.