0

how to allocate routine task using cron command

Hiiii,

I need to find and remove the cache files in my system, every 3 hours for next 2 days.... how to aloocate this using cron command....???

cron Add a comment
sebastian
asked Feb 07 2017

Answer

0

If you known with that exact 2 days, [Eg: Tuesday and Wednesday] then the below command could be used...

0 */3 0 0 2,3  (command)

Here, /3 is for every 3 hours and 2,3 means that only on Tuesday and on Wednesday.

Add a comment
jagannatharumugam
asked Feb 12 2017
edited Oct 05 2018
Post your Answer