Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweaknews.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'url:launchpad': 0.05; 'interpreter.': 0.07; 'line:': 0.09; 'skip:/ 10': 0.09; 'subject:script': 0.09; 'python': 0.11; 'from:addr:swing.be': 0.16; 'from:addr:vincent.vandevyvre': 0.16; 'from:name:vincent vande vyvre': 0.16; 'message-id:@swing.be': 0.16; 'oqapy': 0.16; 'paqager': 0.16; 'path.': 0.16; 'program?': 0.16; 'received:mobistar.be': 0.16; 'ubuntu.': 0.16; 'url:oqapy': 0.16; 'url:paqager': 0.16; 'url:qarte': 0.16; 'v.v.': 0.16; '\xe9crit': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'am,': 0.29; 'run': 0.32; 'problem': 0.35; 'knows': 0.35; 'done': 0.36; 'question,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'full': 0.61; 'first': 0.61; 'export': 0.74; 'obvious': 0.74; '2013': 0.98 Date: Sat, 18 May 2013 20:43:00 +0200 From: Vincent Vande Vyvre User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: python script is not running References: <185557b8-5cd0-4e9c-8c6d-855a8635492c@pd6g2000pbc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368903041 news.xs4all.nl 15923 [2001:888:2000:d::a6]:36903 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45521 Le 18/05/2013 19:59, Chris Angelico a écrit : > 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=:0 & LC_CTYPE="fr_FR.utf-8" Lang="fr_FR.utf-8" python /usr/bin/qarte -a 1 ... on Ubuntu. -- Vincent V.V. Oqapy . Qarte . PaQager