Answers for "crontab example"

2

crontab comment

# This is a comment
0 0 * * * /usr/bin/magiccronjob
Posted by: Guest on September-09-2020
5

syntax crontab

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  *  user command to be executed
example :
# 50 12 * * * ----- run every day at 12.50

# */5 * * * * ----- run every 5 minutes
Posted by: Guest on February-19-2021
5

crontab sample command

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- weekday (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  *  user command to be executed
10 * * * * /bin/sh backup.sh    # every hour at 10"
Posted by: Guest on August-07-2021
1

cronjob example

//Specify cron frequency
//e.g. run minute 0, every hour
0 */1 * * *
//enter a bash command to the script input field
//e.g. a wget command where the output isn't saved
wget -O- url_here >> /dev/null
Posted by: Guest on August-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language