Wishful thinking : unix to windows script?

2005-03-04 Thread John Leslie
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

Re: passing arguments like -JOB

2005-02-11 Thread John Leslie
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

passing arguments like -JOB

2005-02-10 Thread John Leslie
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

pass named parameters to python

2005-02-08 Thread John Leslie
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