Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10386
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.073 |
| X-Spam-Evidence | '*H*': 0.85; '*S*': 0.00; 'cleanup': 0.07; 'wed,': 0.12; 'wrote:': 0.15; 'filename.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; '\xa0in': 0.16; 'pm,': 0.16; 'script.': 0.19; 'appropriate': 0.20; "aren't": 0.22; 'pointed': 0.22; 'header:In-Reply-To:1': 0.22; 'works.': 0.23; 'guess': 0.28; 'right.': 0.28; 'all,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'script': 0.29; '27,': 0.29; 'subject:skip:a 10': 0.29; 'subject:per': 0.30; 'subject:?': 0.31; 'chris': 0.32; 'necessary.': 0.32; 'setting': 0.32; 'to:addr:python-list': 0.34; 'it?': 0.34; 'probably': 0.35; 'subject:How': 0.36; 'file': 0.36; 'useful': 0.37; 'but': 0.37; 'getting': 0.38; 'received:google.com': 0.38; 'subject:can': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'put': 0.38; 'case,': 0.38; 'data': 0.39; 'either': 0.39; 'allows': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'received:209': 0.40; 'where': 0.40; 'setup': 0.40; 'full': 0.63; 'subject:program': 0.67; 'batch': 0.68; 'subject:day': 0.68; 'alternative': 0.70; 'subject:make': 0.73; 'received:209.85.218.46': 0.91; 'received :mail-yi0-f46.google.com': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=kLZNhnl2YWCXFhXY986hbYmJinIRGljCsmfCYjO1C/M=; b=lkwvRjug/eVBvvpbW5DupQ7kOQysz9draQ9f6RPkaWd9uLwI+nLCSpQpFVmKNtYkUj PnvTfU6fzJhyy5B39MJuZsZsxxvFKcBDK81Xe5u9xNOiRTdynSj/97SPF9gMdx4vvGNL 7PzqvFlqMIVCToTXJfdRp+qOTIfF9ojTdW0bE= |
| MIME-Version | 1.0 |
| In-Reply-To | <4E300431.4000805@ieee.org> |
| References | <c626a2fe-3379-41cb-88d8-4f7495d537e6@d1g2000yqm.googlegroups.com> <mailman.810.1310259664.1164.python-list@python.org> <54735121-6a94-4dcb-9f6b-e4fca4aad652@u42g2000yqm.googlegroups.com> <965707ba-5fe2-43cb-853d-f4041a3ba262@e40g2000yqn.googlegroups.com> <mailman.1522.1311733346.1164.python-list@python.org> <cca6b625-9f05-41c8-aaee-2c9a67403438@bl1g2000vbb.googlegroups.com> <4E300431.4000805@ieee.org> |
| Date | Wed, 27 Jul 2011 22:35:11 +1000 |
| Subject | Re: How can I make a program automatically run once per day? |
| 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.12 |
| 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.1536.1311770120.1164.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1311770120 news.xs4all.nl 23848 [2001:888:2000:d::a6]:60993 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10386 |
Show key headers only | View raw
On Wed, Jul 27, 2011 at 10:27 PM, Dave Angel <davea@ieee.org> wrote: > As Chris pointed out, you probably aren't getting the script's directory > right. After all, how can the scheduler guess where you put it? The > obvious answer is to use a full path for the script's filename. Another > alternative is to fill in the current directory in the appropriate field of > the scheduler's entry. I would prefer setting the current directory, as that allows the script to find any data files it needs, but either works. > I find it useful to only add batch files to the scheduler. Those batch > files can do any setup and cleanup necessary. In this case, the batch file > might simply set the current directory to the location of the script. And that is an excellent idea. Definitely recommended. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can I make a program automatically run once per day? John Salerno <johnjsal@gmail.com> - 2011-07-09 17:26 -0700
Re: How can I make a program automatically run once per day? Ben Finney <ben+python@benfinney.id.au> - 2011-07-10 10:40 +1000
Re: How can I make a program automatically run once per day? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-09 19:49 -0500
Re: How can I make a program automatically run once per day? Alexander Kapps <alex.kapps@web.de> - 2011-07-10 03:00 +0200
Re: How can I make a program automatically run once per day? John Salerno <johnjsal@gmail.com> - 2011-07-09 19:01 -0700
Re: How can I make a program automatically run once per day? Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-07-10 10:49 +0200
Re: How can I make a program automatically run once per day? monkeys paw <monkey@joemoney.net> - 2011-07-14 13:00 -0400
Re: How can I make a program automatically run once per day? Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-14 11:13 -0600
Re: How can I make a program automatically run once per day? baloan <baloand@googlemail.com> - 2011-07-27 01:41 -0700
Re: How can I make a program automatically run once per day? John Salerno <johnjsal@gmail.com> - 2011-07-26 18:05 -0700
Re: How can I make a program automatically run once per day? Ethan Furman <ethan@stoneleaf.us> - 2011-07-26 19:02 -0700
Re: How can I make a program automatically run once per day? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-26 21:22 -0500
Re: How can I make a program automatically run once per day? John Salerno <johnjsal@gmail.com> - 2011-07-26 21:09 -0700
Re: How can I make a program automatically run once per day? Chris Angelico <rosuav@gmail.com> - 2011-07-27 16:55 +1000
Re: How can I make a program automatically run once per day? Dave Angel <davea@ieee.org> - 2011-07-27 08:27 -0400
Re: How can I make a program automatically run once per day? Chris Angelico <rosuav@gmail.com> - 2011-07-27 22:35 +1000
Re: How can I make a program automatically run once per day? Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> - 2011-07-27 08:58 -0400
Re: How can I make a program automatically run once per day? John Salerno <johnjsal@gmail.com> - 2011-07-27 09:03 -0700
Re: How can I make a program automatically run once per day? Paul Rudin <paul.nospam@rudin.co.uk> - 2011-07-10 11:21 +0100
csiph-web