Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45535
| References | <bb111639-6a94-4151-a153-9bbebe75a4ea@googlegroups.com> <185557b8-5cd0-4e9c-8c6d-855a8635492c@pd6g2000pbc.googlegroups.com> <CAPTjJmr3xVgEXO_1YnAk1jHVjyBR753iWFq6QaBrYvnJMwiXxQ@mail.gmail.com> <5197CBB4.4020501@swing.be> |
|---|---|
| Date | 2013-05-19 09:33 +1000 |
| Subject | Re: python script is not running |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1822.1368920031.3114.python-list@python.org> (permalink) |
On Sun, May 19, 2013 at 4:43 AM, Vincent Vande Vyvre <vincent.vandevyvre@swing.be> wrote: > 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. Everything's configurable. I'd like to hear back from the OP though; as Roy said, checking 'env' from a cron job will reveal much. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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