Dave's Brain

Browse - Computer Tips - What's the format of the crontab file?

Date: 2017mar17
OS: Linux

Q.  What's the format of the crontab file?

A.  Files in /etc/cron.d are:

# minute | hour | day-of-month | month | day-of-week | user | command 1 5 * * * myuser /usr/local/bin/mycommand
When you do
crontab -e
its just for you so its:
# minute | hour | day-of-month | month | day-of-week | command 1 5 * * * /usr/local/bin/mycommand

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.