Linux and Unix cheatsheet
running a cron at every month end
If tomorrow's date is 01, condition will be true and it will execute subsequent command.
55 23 * * * [ `date -d tomorrow +\%d` -eq '01' ] && /path/to/script
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment