cmdline args to a piped python prog

leo halloleo at
Wed Mar 10 07:48:26 CET 2004

hi there

a python file can evaluate cmdline arguments like

python arg1 arg2 arg3...

when i feed python with my program via terminal input like

cat | python

how can i then specifiy the cmdline arguments arg1 arg2 arg3...?

thanks a lot, leo

ps: wondering why i ask? -- emacs calls python code from abuffer always in
the latter way.

More information about the Python-list mailing list