Re: [Tutor] how to make a script do two things at once.

2005-08-22 Thread nephish
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

Re: [Tutor] how to make a script do two things at once.

2005-08-22 Thread Michael Lange
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

Re: [Tutor] how to make a script do two things at once.

2005-08-21 Thread I-McTaggart, Peter
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. >

Re: [Tutor] how to make a script do two things at once.

2005-08-21 Thread nephish
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 '

Re: [Tutor] how to make a script do two things at once.

2005-08-21 Thread Kent Johnson
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,

Re: [Tutor] how to make a script do two things at once.

2005-08-21 Thread Danny Yoo
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:

[Tutor] how to make a script do two things at once.

2005-08-21 Thread nephish
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