I have a file in cron.daily:
root@nagios.example.com:/# cat /etc/cron.daily/nagios-logs
/usr/bin/nice -n 19 /bin/gzip --fast /var/log/nagios3/archives/*
root@nagios.example.com:/# ls -l /etc/cron.daily/nagios-logs
-rwxr-xr-x 1 root root 65 Apr 15 17:51 /etc/cron.daily/nagios-logs
root@nagios.example.com:/#
but it's not doing anything. Any ideas why?
/var/log/nagios3/archives/
. When I execute it manually it works.>> /tmp/file.log 2>&1
to see if there is any debug/error?cat
command is full and not edited