Re: Running a python code periodically

2008-05-08 Thread Maryam Saeedi
I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. I have asked this question before and some of you answered me but I still have problem. Most of the answers was to use cron and

Re: Running a python code periodically

2008-05-08 Thread Amitabh Saikia
write a bash script(to run your program at intervals) and run the bash script with nohup - [EMAIL PROTECTED] On Thu, May 8, 2008 at 9:02 AM, Maryam Saeedi [EMAIL PROTECTED] wrote: I was wondering if you know how can I run a python code once every five minutes for a period of time either using

Re: Running a python code periodically

2008-05-08 Thread Maryam Saeedi
Can you please explain it a little more? I do not have that much experience! I really appreciate it if you can share a sample code if you have one. Thanks On Thu, May 8, 2008 at 11:07 AM, Amitabh Saikia [EMAIL PROTECTED] wrote: write a bash script(to run your program at intervals) and run the

Re: Running a python code periodically

2008-05-08 Thread D'Arcy J.M. Cain
On Thu, 8 May 2008 11:02:14 -0500 Maryam Saeedi [EMAIL PROTECTED] wrote: I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. Use cron. I have asked this question before and some of

Re: Running a python code periodically

2008-05-08 Thread Terry Reedy
Maryam Saeedi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |I was wondering if you know how can I run a python code once every five | minutes for a period of time either using python or some other program like | a bash script. I expect the following should work. from time import

Re: Running a python code periodically

2008-05-08 Thread Amitabh Saikia
Cron is best for this, and you should be able to create a crontab for yourself. If your system admin has not enabled user level crons. Then write a shell-script or python Shell version - count=0 max_number_of_times while [ $count $max_number_of_times ]; do your_command sleep

Re: Running a python code periodically

2008-05-08 Thread castironpi
On May 8, 3:31 pm, Terry Reedy [EMAIL PROTECTED] wrote: Maryam Saeedi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |I was wondering if you know how can I run a python code once every five | minutes for a period of time either using python or some other program like | a bash

Re: Running a python code periodically

2008-04-10 Thread paul
Larry Bates schrieb: paul wrote: Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched module in the standard library or here:

Re: Running a python code periodically

2008-04-10 Thread Robert.Spilleboudt
paul wrote: Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched module in the standard library or here:

Re: Running a python code periodically

2008-04-09 Thread Jorgen Grahn
On Tue, 08 Apr 2008 15:01:36 -0500, Larry Bates [EMAIL PROTECTED] wrote: paul wrote: Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched

Running a python code periodically

2008-04-08 Thread Maryam Saeedi
Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. Thanks, Maryam -- http://mail.python.org/mailman/listinfo/python-list

Re: Running a python code periodically

2008-04-08 Thread Gabriel Ibanez
- From: Maryam Saeedi To: python-list@python.org Sent: Tuesday, April 08, 2008 7:53 PM Subject: Running a python code periodically Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program

Re: Running a python code periodically

2008-04-08 Thread paul
Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched module in the standard library or here: http://pypi.python.org/simple/Recur/ cheers

Re: Running a python code periodically

2008-04-08 Thread Larry Bates
paul wrote: Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched module in the standard library or here:

RE: Running a python code periodically

2008-04-08 Thread Stephen Cattaneo
@python.org Subject: Running a python code periodically Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. Thanks, Maryam -- http://mail.python.org/mailman/listinfo/python

Re: Running a python code periodically

2008-04-08 Thread Mike Driscoll
On Apr 8, 3:01 pm, Larry Bates [EMAIL PROTECTED] wrote: paul wrote: Maryam Saeedi schrieb: Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. See the sched module in