[Solved] Crontab not launching script

Hi all,
i have the following script

#!/bin/sh
for i in `ps -leaf --cols 1024 | grep LogUser | grep -v grep | awk '{print $4}'`;
  do
    echo $i
    kill -15 $i;
done;

but it seems that the crontab its sciping this script,i configured corntab as following

*/30 * * * root /opt/logger/bin/restart.sh

i'm not getting any error but crontab its simply ignoring my script,
btw i also checked if crontab its running and it is ok,

any idea?

Thanks in advance.

Why have you written "root" in the crontab? I guess that's a mistake and should not be there? That leaves just four time fields. There should be 5.

1 Like

Thanks a lot for quick response mate,
that was the problem, solved

*/30 * * * * root /opt/logger/bin/restart.sh