Cron Job flooding my email

I’ve been receiving the following email every minute, about a Cron Job, and didn’t find any topic related to it.

Cron root@johnflix root echo “- - -”> /sys/class/scsi_host/host1/scan

[email protected]

/bin/sh: 1: root: not found

Is there any way to solve it?

Did you add that cron job using crontab? if that is the case, remove root before echo.

2 Likes

That’s the problem I can’t find it. It’s no in Vesta CP UI or in /etc/crontab

Use this:

grep -ri '/sys/class/scsi_host/' /etc/ /var/spool/cron/

2 Likes

Thank you! It was there. There was a file named root with the Cron jobs in it. I removed the file file and rebooted the system, and problem solved.

You are welcome. Anyways, deleting the file is not the way because you removed all the cron jobs for root user and those jobs could be needed for your system maintenance…

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.