1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
# this taskfile contains 5 tasks, lines starting with # are comments
*/1 0/1 * * * echo '[task 1] */1 0/1 * * *' > test/task1.out
* * * * * 2021 echo '[task 2] * * * * * 2021' > test/task2.out
# below three are equivalent
@always echo '[task 3] @always' > test/task3.out
@always echo '[task 4] @always' > test/task4.out
* * * * * echo '[task 5] * * * * *' > test/task5.out
* * * * * echo '[task 6] it should go to outfile' && invalid-cmd
# failure tasks
@always xgronx
@always false
# below are invalid
@invalid
* * * * *
|