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: 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: <185557b8-5cd0-4e9c-8c6d-855a8635492c@pd6g2000pbc.googlegroups.com> <5197CBB4.4020501@swing.be> Date: Sun, 19 May 2013 09:33:43 +1000 Subject: Re: python script is not running From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, May 19, 2013 at 4:43 AM, Vincent Vande Vyvre wrote: > Le 18/05/2013 19:59, Chris Angelico a =E9crit : > >> On Sun, May 19, 2013 at 3:35 AM, woooee 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=3D:0 & LC_CTYPE=3D"fr_FR.utf-8" Lang=3D"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