I'm stumped. Trying to follow the docs and .. failure.
here's the args
[color=blue][color=green][color=darkred]
>>> args[/color][/color][/color]
'-Middwb@mainex1. asu.edu -AKHAAM@prlinux+ 898 -CA --D2003-08-20-09:28:13.417 -Ff -Hprlinux --JTCPIP_NPF_TEST _DARS_PORTRAIT -NTCPIP_NPF_TEST _DARS_PORTRAIT --Pholdqueue -Qholdqueue -aacct -b2895 -d/var/spool/lpd/holdqueue -edfA898prlinux -fTCPIP_NPF_TEST _DARS_PORTRAIT -hprlinux -j898 -kcfA898prlinux -l66 -nKHAAM -sstatus -t2003-08-20-09:28:13.000 -w80 -x0 -y0 acct \n'
I know, they're long. sorry. they just are. and maybe thats the
bug.
here's what happens
[color=blue][color=green][color=darkred]
>>> a, b = getopt.getopt(a rgs, 'APQn')
>>> a[/color][/color][/color]
[][color=blue][color=green][color=darkred]
>>> b[/color][/color][/color]
'-Middwb@mainex1. asu.edu -AKHAAM@prlinux+ 898 -CA --D2003-08-20-09:28:13.417 -Ff -Hprlinux --JTCPIP_NPF_TEST _DARS_PORTRAIT -NTCPIP_NPF_TEST _DARS_PORTRAIT --Pholdqueue -Qholdqueue -aacct -b2895 -d/var/spool/lpd/holdqueue -edfA898prlinux -fTCPIP_NPF_TEST _DARS_PORTRAIT -hprlinux -j898 -kcfA898prlinux -l66 -nKHAAM -sstatus -t2003-08-20-09:28:13.000 -w80 -x0 -y0 acct \n'
not at all what the docs lead me to believe. Is getopt buggy?
I'm on python 2.2.2 on linux but will also be using python 2.1.3 on
FreeBsd.
Advice?
--
David Bear
phone: 480-965-8257
fax: 480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
"Beware the IP portfolio, everyone will be suspect of trespassing"
Comment