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


Groups > comp.lang.python > #45535

Re: python script is not running

Path csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'interpreter.': 0.07; 'line:': 0.09; 'skip:/ 10': 0.09; 'subject:script': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'path.': 0.16; 'program?': 0.16; 'roy': 0.16; 'ubuntu.': 0.16; '\xe9crit': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'am,': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'run': 0.32; 'checking': 0.33; "i'd": 0.34; 'problem': 0.35; 'knows': 0.35; 'received:google.com': 0.35; 'much.': 0.36; 'done': 0.36; 'question,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'full': 0.61; 'first': 0.61; 'back': 0.62; 'hear': 0.63; 'export': 0.74; 'obvious': 0.74; "everything's": 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=YSG6U9LmkBElXNI7jqtndpevx4hZqVgxrHZ3isXSBwo=; b=eEeJiIVczbSt4pkcgoC4VUgo4TgWgG8SkIvJZ6OjFKqFuxCxbCg5lQS9qxyKSNbTXV +ohTCa47gthB4QtkodVgBVT6jEqKbKbvuH4sT9J1LzH2GCmcWnmHkkeE1APMPoIR8Nta PV1M1mDJjB54Cxb41r8ohU6ehcKuTtSEzSckop7/IvvU+wz/UTRXSbIJ9n3Mldk7kTdr LIBkMnY5Fciy90Y6oxGfYbzYa/Bed9uGGHuk0rmKh5j6ijHwzACJ4e84hd6KniA9WD3H UaUPLYHh8SEKhXJTTY7FGAUh6eDi6bnvIE17+ruEmSzA8Vkf+SyXjjLwYucbDbtNREtT J07g==
MIME-Version 1.0
X-Received by 10.58.208.228 with SMTP id mh4mr19282140vec.23.1368920023550; Sat, 18 May 2013 16:33:43 -0700 (PDT)
In-Reply-To <5197CBB4.4020501@swing.be>
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 Sun, 19 May 2013 09:33:43 +1000
Subject Re: python script is not running
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1822.1368920031.3114.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368920031 news.xs4all.nl 15966 [2001:888:2000:d::a6]:46366
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45535

Show key headers only | View raw


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 | NextPrevious 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