#!/bin/bash

cat <<EOF | sudo tee /etc/cron.d/foobar && crontab -u "$(whoami)" /etc/cron.d/foobar
# ------------- Minute (0 - 59)
# | ----------- Hour (0 - 23)
# | | --------- Day of month (1 - 31)
# | | | ------- Month (1 - 12)
# | | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * "command to be executed"

* * * * * echo test

EOF
