How To Schedule a Task In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal window.
2. Use the command “crontab -e” to open the cron table editor.
3. Enter the command you want to execute in the crontab.
4. Specify the time and date for the task to be executed.
5. Save the changes to the cron table by pressing Ctrl+X.
6. Check that the job was added to the cron table by using the “crontab -l” command.
7. Restart the cron service by using the command “sudo service cron restart”.