What is wrong with this cron job?
I keep getting a "bad minute" error in line 6, but I am suspecting it means line 7. In any case, I cannot figure out what I did wrong.
Ken Gordon
#/bin/sh
# Automated Lynis Scan Script
#Define log and report paths
LOGFILE="/var/log/lynis-cron.log"
REPORTFILE="/var/log/lynis-report.dat"
/usr/local/bin/lynis "audit system --/usr/local/bin/lynis_cron.sh --quick > $LOGFILE 2>&1"
# Optional: Send an email alert if warnings are found in log
if grep -q "Warning:" $LOGFILE; then mail -s "Lynis Security Warning on $KensOffice" root > LOGFILE
fi[I keep getting a "bad minute" error in line 6, but I am suspecting it means line 7. In any case, I cannot figure out what I did wrong.
Ken Gordon