Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45521

Re: python script is not running

Date 2013-05-18 20:43 +0200
From Vincent Vande Vyvre <vincent.vandevyvre@swing.be>
Subject Re: python script is not running
References <bb111639-6a94-4151-a153-9bbebe75a4ea@googlegroups.com> <185557b8-5cd0-4e9c-8c6d-855a8635492c@pd6g2000pbc.googlegroups.com> <CAPTjJmr3xVgEXO_1YnAk1jHVjyBR753iWFq6QaBrYvnJMwiXxQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1811.1368903041.3114.python-list@python.org> (permalink)

Show all headers | View raw


Le 18/05/2013 19:59, Chris Angelico a écrit :
> On Sun, May 19, 2013 at 3:35 AM, woooee <woooee@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>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python script is not running Avnesh Shakya <avnesh.nitk@gmail.com> - 2013-05-18 03:12 -0700
  Re: python script is not running Chris Angelico <rosuav@gmail.com> - 2013-05-18 23:28 +1000
    Re: python script is not running Roy Smith <roy@panix.com> - 2013-05-18 09:44 -0400
  Re: python script is not running Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-18 12:35 -0400
  Re: python script is not running woooee <woooee@gmail.com> - 2013-05-18 10:35 -0700
    Re: python script is not running Chris Angelico <rosuav@gmail.com> - 2013-05-19 03:59 +1000
    Re: python script is not running Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-05-18 20:43 +0200
    Re: python script is not running Chris Angelico <rosuav@gmail.com> - 2013-05-19 09:33 +1000

csiph-web