Forum Discussion
Brian_Kenworthy
Jan 11, 2012Nimbostratus
Cron Help
Hi All, we recently upgraded out LTMs from 9.4.7 to 10.2.3 and I had to re-write a bash script that I have which will disable sessions to node for server maintenance. In V9 I used to edit the /etc/crontab file for Wednesday night maintenance, the syntax looked like this:
30 19 * * 3 root sh /usr/local/sbin/DisableNodes.sh
After the upgrade, I am not able to write to /usr/local/sbin so I placed the scripts in /var/tmp for now. Is there a better place to store these per best practices?
Now if I put the line in crontab for testing purposes, it is not working. However, I am able to execute the script from bash:
00 13 * * 3 root sh /var/tmp/DisableNodes.sh
Is there something in V10 that is prohibiting cron from running the script? I don't see anything in the logs either.
Thanks in advance for your help.
-BK
- nitassEmployeeAfter the upgrade, I am not able to write to /usr/local/sbin so I placed the scripts in /var/tmp for now. Is there a better place to store these per best practices?if you want, you can re-mount it in read-write mode, place the script and re-mount it back to read-only mode.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects