On 24/04/13 20:16, Adam Klimont wrote:
> My cronie task list looks like this:
> 
> PATH=/opt/ts/gnu/bin:/sge/GE/bin/sol-amd64:/usr/bin:/bin
> 5 1 * * * qcronsub -N 'wymowa.py' -b y -l h_rt=4:00:00 -l
> virtual_free=50M /usr/bin/env PYTHONPATH=$HOME/wikt/pywikipedia
> /usr/bin/python2 $HOME/wikt/moje/wymowa.py >/dev/null
> 6 2 * * * qcronsub -N 'frequency.py' -b y -l h_rt=0:30:00 -l
> virtual_free=20M /usr/bin/env PYTHONPATH=$HOME/wikt/pywikipedia
> /usr/bin/python2 $HOME/wikt/moje/frequency.py >/dev/null
> ...and so on
> 
> It stopped working around 2-3 weeks ago. Now I get an error message:
> /usr/bin/env: No such file or directory
> 
> What should I change in these lines in order for the scripts to work again?
> 
> alkamid

There's no python2 binary on debian nor solaris. Just replace 'python2'
with 'python'. In both OS you will get a python 2 release (2.6.6 and
2.7.1 respectively).

Although I agree it would be nice to have python2 as a symlink.


_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to