Or does anyone have a python script which takes a standard unix
command as an argument and runs the pyton/windows equivalent on
windows?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks...it worked perfectly.
Brilliant!!
JL
Duncan Booth <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> John Leslie wrote:
>
> > I am porting a script from Korn Shell to python and want to pass named
> > parameters like -JOB 123456 -DIR mydir
I am porting a script from Korn Shell to python and want to pass named
parameters like -JOB 123456 -DIR mydir
I can get it to work passing --JOB and --DIR but not -JOB and -DIR
Any ideas?
Current code :
try:
options, xarguments = getopt.getopt(sys.argv[1:], '', ['JOB=',
'DIR=', 'ERR=', 'GRP
I am converting a korn shell script to python and want to be able to
pass named arguments into python e.g -firstparam -secondparam
Can this be done?
--
http://mail.python.org/mailman/listinfo/python-list