newbie running IDLE with command line arguments

qwweeeit at yahoo.it qwweeeit at yahoo.it
Tue May 17 15:58:17 EDT 2005


Hi,
also if you print only 'host',  running the script, you have to pass
all the 3 parameters, like:
python socket_script.py  myserver 567  'All is OK!'
The parameter sys.argv[0] is of course the script 's name (in this
example: socket_script.py)
Bye.




More information about the Python-list mailing list