Hi folks,
we noticed a strange crontab behaviour that's quite critical for us.
We have an entry there running a script "checkredo" every 5 minutes.
The script contains among others the following line:
su - $BPW_DB2ADM -c "db2diag -t $DATUM -gi \"proc := db2logmgr\"|grep LEVEL:"|grep Error > /tmp/redosave.log
Currently there ARE errors shown in the db2diag so the file /tmp/redosave.log should contain some entries after the script has been run ...
But if we run the checkredo the redosave.log is empty !
If we run the command
"su - $BPW_DB2ADM -c "db2diag -t $DATUM -gi \"proc := db2logmgr\"|grep LEVEL:"|grep Error > /tmp/redosicherung.log"
from command line (without cron or at involved) we HAVE entries in the redosave.log
We're getting absolutely no error from cron ...
Any idea what might be wrong here ??
Regards
Thomas
we noticed a strange crontab behaviour that's quite critical for us.
We have an entry there running a script "checkredo" every 5 minutes.
The script contains among others the following line:
su - $BPW_DB2ADM -c "db2diag -t $DATUM -gi \"proc := db2logmgr\"|grep LEVEL:"|grep Error > /tmp/redosave.log
Currently there ARE errors shown in the db2diag so the file /tmp/redosave.log should contain some entries after the script has been run ...
But if we run the checkredo the redosave.log is empty !
If we run the command
"su - $BPW_DB2ADM -c "db2diag -t $DATUM -gi \"proc := db2logmgr\"|grep LEVEL:"|grep Error > /tmp/redosicherung.log"
from command line (without cron or at involved) we HAVE entries in the redosave.log
We're getting absolutely no error from cron ...
Any idea what might be wrong here ??
Regards
Thomas