![]() ![]() But executes the command monthly once using cron keyword. Schedule a Cron Job Beginning of Every Month using is as similar as the as above. home/ramesh/red-hat/bin/annual-maintenance 9. This will execute the system annual maintenance using annual-maintenance shell script at 00:00 on Jan 1st for every year. Schedule a Job For First Minute of Every Year using you want a job to be executed on the first minute of every year, then you can use the cron keyword as shown below. Table: Cron special keywords and its meaning 0 1 1 0 * * * * * at startup.Ĩ. There are special cases in which instead of the above 5 fields you can use followed by a keyword - such as reboot, midnight, yearly, hourly. Instead of specifying values in the 5 fields, we can specify it using a single keyword as mentioned below. The above examples shows how to do those things. But you may have a requirement of executing the command only during office hours or vice versa. It executes the specified command check-disk-space every 10 minutes through out the year. */10 * * * * /home/ramesh/check-disk-space Use the following, if you want to check the disk space every 10 minutes. ![]() Schedule a Background Cron Job For Every 10 Minutes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |