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

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 & slee

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 impo

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 s

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 th

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 us

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 crontab

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: > http://pypi.pyt

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 librar

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 scrip

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

RE: Running a python code periodically

2008-04-08 Thread Stephen Cattaneo
ython-list@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/listi

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: > http://pypi.pyt

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/ cheer

Re: Running a python code periodically

2008-04-08 Thread Gabriel Ibanez
riginal Message - 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 som

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