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'
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
# * * * * * # | | | | | # | | | | 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.