Re: [Tutor] please help with simple python CGI script

2008-10-25 Thread aivars
Thanks John and Alan I get the following error when I run the script from IDLE: Traceback (most recent call last): File "C:\Cgi-bin\friends1.py", line 15, in who = form['person'].value File "C:\Python25\lib\cgi.py", line 567, in __getitem__ raise KeyError, key KeyError: 'person' Ai

Re: [Tutor] please help with simple python CGI script

2008-10-25 Thread Alan Gauld
"aivars" <[EMAIL PROTECTED]> wrote still banging mu head with Wesley Chun's simple example - I'm not sure if this is significant but It gives me the following error: Traceback (most recent call last): File "C:\Cgi-bin\friends1.py", line 15, in Notice that the file path has Cgi no

Re: [Tutor] [tutor] run a program and direct it's print file to a file?

2008-10-25 Thread Lie Ryan
On Sat, 25 Oct 2008 07:56:53 -0400, Fast Primes wrote: > Hi, > > I'm very rusty. From a linux box, I want to run a program X.py after or > while setting it's list output to a file L.txt. How do I do that please? I think this is a linux question more than python question. In Linux, it's easy to

Re: [Tutor] please help with simple python CGI script

2008-10-25 Thread aivars
It does not work neither as script or from command line. I will try to find the guy Wesley Chun and ask him 2008/10/25 John Pomni <[EMAIL PROTECTED]>: > Hi, > > The script does not work from command line but I guess you do not have > any problems running it as CGI? > > I like cgitb modules for deb

Re: [Tutor] [tutor] run a program and direct it's print file to a file?

2008-10-25 Thread Alan Gauld
"Fast Primes" <[EMAIL PROTECTED]> wrote in I'm very rusty. From a linux box, I want to run a program X.py after or while setting it's list output to a file L.txt. How do I do that please? $ python X.py > L.txt Should do it. HTH, -- Alan Gauld Author of the Learn to Program web site http

Re: [Tutor] [tutor] run a program and direct it's print file to a file?

2008-10-25 Thread Kent Johnson
On Sat, Oct 25, 2008 at 7:56 AM, Fast Primes <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm very rusty. From a linux box, I want to run a program X.py after or while > setting it's list output to a file L.txt. python X.py > L.txt or if X.py is executable and has the correct shebang line X.py > L.txt

[Tutor] [tutor] run a program and direct it's print file to a file?

2008-10-25 Thread Fast Primes
Hi, I'm very rusty. From a linux box, I want to run a program X.py after or while setting it's list output to a file L.txt. How do I do that please? Thanks. FP _ Stay organized with simple drag and drop from Windows Live Hotmail.