Michael Lange wrote:
>On Sun, 21 Aug 2005 16:23:20 -0500
>nephish <[EMAIL PROTECTED]> wrote:
>
>
>
>>Hey there,
>>i have a simple question about getting a script to do
>>two things at once.
>>like this.
>>
>>
>>for i in range(100):
>>print i
>>time.sleep(.2)
>>if i == 15:
>>o
On Sun, 21 Aug 2005 16:23:20 -0500
nephish <[EMAIL PROTECTED]> wrote:
> Hey there,
> i have a simple question about getting a script to do
> two things at once.
> like this.
>
>
> for i in range(100):
> print i
> time.sleep(.2)
> if i == 15:
> os.system('python /home/me/ipupd
wnvpe() are not available on Windows. New in version 1.6.
> -Original Message-
> From: nephish [mailto:[EMAIL PROTECTED]
> Sent: 22 August 2005 1:23
> To: Kent Johnson
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Tutor] how to make a script do two things at once.
>
Kent Johnson wrote:
>nephish wrote:
>
>
>>Hey there,
>>i have a simple question about getting a script to do
>>two things at once.
>>like this.
>>
>>
>>for i in range(100):
>>print i
>>time.sleep(.2)
>>if i == 15:
>>os.system('python /home/me/ipupdate.py')
>>
>>print '
nephish wrote:
> Hey there,
> i have a simple question about getting a script to do
> two things at once.
> like this.
>
>
> for i in range(100):
> print i
> time.sleep(.2)
> if i == 15:
> os.system('python /home/me/ipupdate.py')
>
> print 'done'
>
> when i run this,
On Sun, 21 Aug 2005, nephish wrote:
> i have a simple question about getting a script to do
> two things at once.
Hi Shawn,
It sounds like you may want to try threading. Here you go:
http://www.python.org/doc/lib/module-threading.html
Aahz has written a tutorial about Threads here:
Hey there,
i have a simple question about getting a script to do
two things at once.
like this.
for i in range(100):
print i
time.sleep(.2)
if i == 15:
os.system('python /home/me/ipupdate.py')
print 'done'
when i run this, it stops at 15 and runs the script called out