i have two cronjobs, i want to run the two cronjobs at a small gap of ten minutes. once in two days, at 0100 hours and 0110 hours
this is what iam trying.
0 1 */2 * * job1.sh
10 1 */2 * * job2.sh
job1 is not working as expected. it runs twice everyday.
job2 runs as expected (once in two days).
what am i doing wrong?
You need to add the binary executing the script, as well as the complete route to your file:
0 1 */2 * * /bin/sh /route/to/your/file/job1.sh
10 1 */2 * * /bin/sh /route/to/your/file/job2.sh
/bin/sh
can be another thing, just get it from which sh
.