3 examples for crontab

{{ score }}
  #Edit crontab for current user
#
#Allows bro to add cron job scheduled command
#Entries added in the following format:
# * * * * *  command to execute
# | | | | |
# | | | | |
# | | | | |------ day of week (0 - 6) (0 to 6 are Sunday to Saturday, 7 is Sunday, the same as 0)
# | | | |------------- month (1 - 12)
# | | |--------------------- day of month (1 - 31)
# | |------------------------------ hour (0 - 23)
# |------------------------------------- min (0 - 59)
#
# e.g.
# 15 * * * * ~./brofist
# Would run the brofist command once an hour on the 15th minute of every hour
crontab -e
        
{{ score }}
  #List crontab for current user
crontab -l
        
{{ score }}
  # Add crontab from from STDIN
echo "* * * * * /my-script.sh" | crontab -