0

I have script files. .file I need to run only on the first day of the every month.

How can I do this with my cron job?

52 07 * * * bash '/home/linux/tanu/cat.sh'
  • You've changed the question so that it no longer makes sense. I rolled back the question to the previous revision that was active when you accepted the given answer. – Kusalananda Feb 23 at 13:36
3
# * * * * *
# | | | | |
# | | | | day of week 0-7 (0 or 7 is Sun, or use names)
# | | | month 1-12 (or names)
# | | day of month 1-31
# | hour 0-23
# minute 0-59 

# runs on every 1st of month at 7:52am
52 7 1 * * bash '/home/linux/tanu/cat.sh'    

# runs on all other days at 7:52am
52 7 2-31 * * bash '/home/linux/tanu/cat.sh'     

I hope that's correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.