Page 1 of 1

Cron Job error

Posted: Wed Jun 01, 2016 6:53 am
by lkycy
Hello all,

I was add a cron job last night.
My cron job command is;

Code: Select all

sudo /sbin/reboot
When the command activated, system send me an email;

Code: Select all

sudo: no tty present and no askpass program specified
I was tried edit visudo and i add something like this but it doesn't work;

Code: Select all

myname ALL = NOPASSWD: /sbin/poweroff, /sbin/start, /sbin/stop, /sbin/reboot
Someone can help me?

Thanks is advance...

Re: Cron Job error

Posted: Mon Jun 06, 2016 5:22 pm
by SS88