0

Running a server with Ubuntu 18.04

I am attempting to run this command every 10 minutes in crontab on the directory /var/www/html:

  find . -type f -name "*.maintenance" -delete

Is this the correct syntax to accomplish this?

  */10 * * * * /var/www/html find . -type f -name "*.maintenance" -delete
Alex Douglas
  • 323
  • 1
  • 4
  • 11

1 Answers1

1

This will do what you want:

*/10 * * * * find /var/www/html -type f -name "*.maintenance" -delete

In the future, you can try creating the cronjob and checking the logs if it doesn't work.

Nasir Riley
  • 2,035
  • 8
  • 9