crontab -e TASK for my SERVER
Budget: $10 – $30 USD
Hello to everyone
I would like to create a Crontab -e on my Ubuntu 18.04 server so it can execute an avtivity every month but I do not know which one is correct.
This task is to reset Mosquitto server
1st. 0 0 1 * * sudo systemctl restart mosquitto
2nd. 0 0 1 * * systemctl restart mosquitto
3rd. 0 0 1 * * restart mosquitto
which one to use and how to check is the correct command
I would like to create a Crontab -e on my Ubuntu 18.04 server so it can execute an avtivity every month but I do not know which one is correct.
This task is to reset Mosquitto server
1st. 0 0 1 * * sudo systemctl restart mosquitto
2nd. 0 0 1 * * systemctl restart mosquitto
3rd. 0 0 1 * * restart mosquitto
which one to use and how to check is the correct command