On Mon, Apr 14, 2008 at 12:55 PM, Brain Stormer <[EMAIL PROTECTED]> wrote: > I have a python program which works fine when run using idle but I would > like call the program from the terminal. > > python test.py -i inputfile -o outputfile > > I tried with raw_input but that only works in idle. Can this be achieved? > Thanks > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor
Please see: http://www.faqs.org/docs/diveintopython/kgp_commandline.html >From the book: Dive into Python. Source code examples from the book: http://diveintopython.org/download/diveintopython-examples-4.1.zip Happy Programming! -- b h a a l u u at g m a i l dot c o m Kid on Bus: What are you gonna do today, Napoleon? Napoleon Dynamite: Whatever I feel like I wanna do. Gosh! _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor