Hi,<br><br>We are running into a strange issue when we run reports inside of a script as root everything works fine.  When we point the root crontab at the same script it no longer returns any results.  <br><br>For example we have the script something like this  below:<br>
<br><br>#!/bin/bash<br>#<br># script foo.sh<br># report to log.<br>###########################################<br>/sbin/aureport   -i -f  -ts today  --failed  > /root/someloghere  <br># end script<br><br><br>When we run foo.sh as root from a command prompt it works fine.<br>
<br>When we run it from a crontab it doesn't return any results.  <br><br><br>We has also tried adding the path to the file .<br>/sbin/aureport   -i -f  -ts today  --failed  > /root/someloghere  -if /var/log/audit/audit.log  > /root/someloghere  <br>
<br><br>We are running RHEL5.1 x64 if that matters.<br><br>I also downloaded and built the aureport and ausearch   still it had to effect.<br><br>Is there something we are doing wrong?<br><br><br>Thanks<br><br>Phillip<br>
<br><br><br><br><br><br><br>