New to crontab, I wanted to experiment.
Running the command crontab -l
gave me the following answer crontab: no crontab for User_1
Every time I tried to issue a command like 1 16 24 10 6 ping -D -c 1 www.google.com
I got the error "zsh: command not found".
Every time I modified the first number of the crontab command I got an error message saying, if for example 15 is the first number of the command, zsh: command not found: 15
.
For info:
Mac OS X 10.12.6. zsh 5.8
which crontab
: /usr/bin/crontab
/usr/bin
is in my path.
1 16 24 10 6 ping ...
will only run when Oct 24th falls on a Saturday. To make it run every year use1 16 24 10 * ping ...
, to make it run each Saturday use1 16 * * 6 ping ...
crontab -l
at 18:39 or later, I get the following answer38 18 24 10 6 echo "test" >> ~/Downloads/test.txt
. As the command has been run, shouldn't I get an answer saying no cron job is planned? I watched the Youtube Corey Schafer video about crontab andcrontab -l
is in his own words for "scheduled" jobs). Issuingcrontab -r
deinstalled this job from the crontab jobs list.man at
.at
looks very interesting! Tried it on my Mac. Worked. Unfortunately, it is deprecated. From developer.apple.com "Older approaches, such as at jobs and periodic jobs are deprecated and should not be used."