28
◾
Ethical Hacking and Penetration Testing Guide
The third field is DOM (day of the month). If we specify * in the third field, it will run in
every day of month. So we need to specify the specific day on which we want to run schedule. The
fourth field is for month; If we specify * in the fourth field, it will run in every month. So we need
to specify the specific day and month on which we want to run schedule. In the example, we want
to run schedule on every first day of oct.
root@net:~#vi cron.week/logs-week
* * 1 4 * /home/network/log-month.pl
OR
* * 1 apr * /home/network/log-month.pl
Save and exit.
Note: If you want to assign a range like Jan to Nov then you will need to specify month as 1–11 .
Dostları ilə paylaş: