crosson_16669
Aug 13, 2013Nimbostratus
Basic Crontab setup
I can't seem to get my bigip to run a simple cron. Below is the script run
config_sync_script.py
!/usr/bin/python
import os
failover_status = os.popen("b failover show").read().split()[1]
sync_status = os.popen('tmsh show sys config-sync | grep "Status"').read().split()[1]
if failover_status == 'active' and sync_status == '1':
os.system('tmsh run sys config-sync')
config ls -la | grep config_sync_script.py
-rwxr--r-- 1 root root 274 Aug 13 09:06 config_sync_script.py
crontab -l
Active] config crontab -l
cron tab for root
1-59/30 * * * * /usr/bin/diskmonitor
18 9 * * * /config/config_sync_script.py
The time just matches a time I was working on it. In monitoring the cron log nothing happens and the script never seems to run. What am I missing?