How to add schedule job on Ubuntu

cron-job

How to add schedule job on Ubuntu
For some reason we have to run some commands or script on daily or hourly basis for these purpose cron job is the best solution that automatic runs that script.

crontab -e

This is an example for a job which going to be run after every 10 mins

*/10 * * * * usr/bin/somedirectory/somecommands

This is an example for a job which is going to be run daily at 4.01 AM daily.

01 04 * * * /usr/bin/somedirectory/somecommand

Feel free to ask anything 😊

Leave a Reply

Your email address will not be published. Required fields are marked *