Forum Discussion
almudena_3796
Nimbostratus
Thx a lot. What I made was to create the following script named total_requests:
/bin/date +%d/%m/%y_%H:%M >> /var/local/scripts/total_requests.out /usr/bin/tmsh show ltm virtual raw|grep 'Total Req'|cut -d- -f3|awk '{s+=$1}END{print s}' >> /var/local/scripts/total_requests.out
When I run it, it works: [root@F5:Active] scripts /bin/bash /var/local/scripts/total_requests [root@F5:Active] scripts cat total_requests.out 13/01/14_11:42 99
BUT when I let crontab run it, it does not work: [root@F5:Active] scripts crontab -l
cron tab for root
00,15,30,45 * * * * /bin/bash /var/local/scripts/total_requests
[root@F5:Active] scripts cat total_requests.out 13/01/14_11:45 <-it does not appear the value
Is there any bug with crontab?
uni
Jan 13, 2014Altostratus
Debugging cron issues is very low on my list of fun things to do. Try capturing stderr for your tmsh command.