crontab setting weekdays
I want to run a cron Wednesday to Monday and have the following setting
weekday => '3-1'
But puppet is complaining about the '-'. What is the correct way to do this?
That's not actually a Puppet error message. Puppet simply passes the desired parameters down to the cron system on your machine. I expect that if you use "crontab -e" and try to enter the same range for the weekday, it will not allow you to do that. That's what happened when I tried it on a CentOS 6 machine here.
So you'll need to come up with an alternate value to your weekday attribute that the underlying cron system accepts. Once you do that, it should work fine.
Asked: 2016-01-06 17:45:44 -0500
Seen: 59 times
Last updated: Jan 06 '16