Need help with cron job

  • Answered
Yesterday I followed the instructions on this page:
I copied this (egrep "POST .*wp-login.php" ~/access-logs/ | awk '{print $1,$4,$5,$6,$7,substr($0, index($0,$12))}' | awk '{print $1}' | sort -n | uniq -c | sort -n | sed 's/[ ]*//') into the cron job, changing "" for the domain of my multisite wp installation.
Today I received an email saying grep: /home/blah-blah/access-logs/ No such file or directory

Can you assist setting up the correct cron job?


I took a look at your cronjob and it failed as that file does not exist. Please keep in mind that addon domains in the access logs directory are shown as I have corrected the cron job already and you should have no more problems.

Best Regards,
TJ Edens