python script is not running

Vincent Vande Vyvre vincent.vandevyvre at swing.be
Sat May 18 14:43:00 EDT 2013


Le 18/05/2013 19:59, Chris Angelico a écrit :
> On Sun, May 19, 2013 at 3:35 AM, woooee <woooee at gmail.com> wrote:
>> The obvious question, do you have the shebang on the first line so the
>> OS knows it's to be run as a Python program?
> That won't make any difference; the cron job specifically stipulates
> the interpreter. It just needs to be done with a full path.
>
> ChrisA
Not necessary, I use crontab without problem with this line:

25 16 18 5 * export DISPLAY=:0 & LC_CTYPE="fr_FR.utf-8" 
Lang="fr_FR.utf-8" python /usr/bin/qarte -a 1

... on Ubuntu.

-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte 
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>



More information about the Python-list mailing list