Forum Discussion
Mic_108850
Altostratus
Apr 13, 2010"b" command in a crontab
Hi,
i'd like to set up a schedulded task on my BIG-IP LTM
The script should be run each day at the following hour:
09:10 and 11:10
The command included is to clear the RAMCACHE profile below:
b pro...
hoolio
Cirrostratus
Apr 13, 2010Hi Mic,
Can you try the following:
Create a script file. Edit the actual command you want to run inside the double quotes
echo "b profile command here" > /root/ramcache.clear.sh
Make the script executable by root
chmod 744 /root/ramcache.clear.sh
Edit root's crontab
crontab -e
Add the following two lines (from: http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/)
At 9:10 and 11:10, run the ramcache clear script on the active unit
10 9,11 * * * if [ `/bin/ps1` == "Active" ]; then /root/ramcache.clear.sh > /dev/null 2>&1; fi
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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