[Mailman-Users] mailman/python and cron

Scott R. Every scott at emji.net
Thu Jan 4 21:10:22 CET 2001


ok.  i found the answer and thought i'd post it in case anyone else runs 
into this.  the environment variables under the cron user(root on this 
system) did not included /usr/local/bin which is where python was installed.
doing a:
ln -s /usr/local/bin/python /usr/bin/python

fixed it.  i expect change the paths for root would similarily work.

s

--On Thursday, January 4, 2001 11:56 AM -0500 "Scott R. Every" 
<scott at emji.net> wrote:

> trying to execute the following statement from within a cron script(perl):
> /home/mailman/bin/add_members -n $sfilename -w y $list
> 1>>/home/mailman/to_do/subs.log 2>>/home/mailman/to_do/subs.log
>
> it works fine from the command line, but when run under cron i get the
> following error in the log: env: python: No such file or directory
>
> any ideas what i can do to fix this?
>
> thanx
>
> s
>
>
> --
> Scott R. Every - mailto:scott at emji.net
> EMJ Internet - http://www.emji.net
> voice : 1-888-258-8959  fax : 1-919-363-4425
>
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users



--
Scott R. Every - mailto:scott at emji.net
EMJ Internet - http://www.emji.net
voice : 1-888-258-8959  fax : 1-919-363-4425




More information about the Mailman-Users mailing list