cron, python and samba restart
Nick Craig-Wood
nick at craig-wood.com
Mon Oct 29 04:30:15 EDT 2007
symbioid <symbioid at gmail.com> wrote:
> Is there something in the way I'm calling with the subprocess.call()
> function that's not able to work through cron? My concern is that I'm
> using sudo, and that may be where the problem lies.
http://www.gratisoft.us/pipermail/sudo-users/2005-May/002518.html
Todd C. Miller Todd.Miller at courtesan.com wrote:
> Your sudo is configured to only run when there is a tty
> present, whcih is not the case for cron jobs. Usually this
> is due to a line like the following in sudoers:
>
> Defaults requiretty
>
> Removing this (or just disabling it for the user who must run the
> cron job) should eliminate the error. Note that you will also need
> to disable authentication either via the NOPASSWD tag or the
> "authenticate" Defaults option.
Check the PATH in cron also
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list