simple program

shawn s desktop_specialist at yahoo.com
Fri Apr 11 18:20:06 CEST 2008


Hi,

Here is a simple prog that I can run from the Python shell and it runs fine but when I double click the 'filename.py' ,
it does not execute the ping statement, and seems like it is stuck at the following output:


Fri Apr 11 12:16:09 2008
Testing  192.168.0.1



The prog is as follows:

import os, curses
import socket, time

BAS ='192.168.0.1'

os.system ('ping '+ BAS)

print time.ctime()

curses.delay_output(5000)

Any ides as to why it is doing that? You may email me at desktop_specialist at yahoo.com




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080411/6dc04407/attachment.html>


More information about the Python-list mailing list