In /etc/cron.d/myjob
, I create a cron task of running a bash script and redirect its stdout and stderr to a log file. The script contains a line of sudo
running a command.
In the log file:
sudo: no tty present and no askpass program specified
Does that cause some problem that needs my attention?
I was wondering if cron tasks in /etc/cron.d/
files are supposed to not contain sudo
?
Thanks.