Crontab Entries
Below is the syntax of crontab entry
Minute Hour Day of Month Month Day of Week Command
(0-59) (0-23) (1-31) (1-12/Jan-Dec) (0-6 or Sun-Sat) ----
for Example
00 20 * * * date > /root/date
The above command will execute the date command and save output in /root/date on 20:00 P.M. everyday.
Below is the syntax of crontab entry
Minute Hour Day of Month Month Day of Week Command
(0-59) (0-23) (1-31) (1-12/Jan-Dec) (0-6 or Sun-Sat) ----
for Example
00 20 * * * date > /root/date
The above command will execute the date command and save output in /root/date on 20:00 P.M. everyday.
No comments:
Post a Comment