a)
Execute a cron job every 5 Minutes
*/5 * * * * <<Process>>
b)
Execute a cron job every 5 Hours
0 */5 * * * <<Process>>
c)
Execute a job every 5 Seconds
Cron job cannot be used to schedule a job in seconds interval. i.e You cannot schedule a cron job to run every 5 seconds. The alternative is to write a shell script that uses ‘sleep 5′ command in it.
d)
Execute a job every 5th weekday
0 0 * * 5 <<Process>>
(or)
0 0 * * Fri <<Process>>
Note: Get into the habit of using Fri instead of 5. Please note that the number starts with 0 (not with 1), and 0 is for Sun (not Mon).
e)
Execute a job every 5 months
0 0 1 5,10 * <<Process>>
(or)
0 0 1 May,Oct * <<Process>>