Re: Coming from Perl

2007-09-17 Thread Amer Neely
Bryan Olson wrote: Amer Neely wrote: I don't have shell access but I can run 'which python' from a Perl script, and I will try the different shebang line you suggested. And after trying it, Amer Neely reported: I tried `which python` and `whereis python` and got 0 back as a result. So

Re: Coming from Perl

2007-09-16 Thread Amer Neely
Paddy wrote: On Sep 13, 1:30 am, Amer Neely [EMAIL PROTECTED] wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. A question I have, if someone here is familiar with Perl, does Python have something like Perl's 'here document'? I've

Re: Coming from Perl - SOLVED

2007-09-15 Thread Amer Neely
I V wrote: On Thu, 13 Sep 2007 23:49:32 -0400, Amer Neely wrote: In trying to track down why this script would not run on my host, it has to come to light that Python is installed, however the Apache module is not. So, short story is - I was flogging a dead horse. Which Apache module? You

Re: Coming from Perl

2007-09-15 Thread Amer Neely
Bryan Olson wrote: Amer Neely wrote: This seems to indicate that maybe my host needs to configure Apache to run python scripts? But I didn't need to do anything with mine. Another possibility: If it works on Windows but not Unix, check the end-of-line characters. Windows ends each line

Re: Coming from Perl

2007-09-15 Thread Amer Neely
Bryan Olson wrote: Amer Neely wrote: This seems to indicate that maybe my host needs to configure Apache to run python scripts? But I didn't need to do anything with mine. Another possibility: If it works on Windows but not Unix, check the end-of-line characters. Windows ends each line

Re: Coming from Perl

2007-09-13 Thread Amer Neely
TheFlyingDutchman wrote: On Sep 12, 5:30 pm, Amer Neely [EMAIL PROTECTED] wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. A question I have, if someone here is familiar with Perl, does Python have something like Perl's 'here

Re: Coming from Perl

2007-09-13 Thread Amer Neely
Amer Neely wrote: TheFlyingDutchman wrote: On Sep 12, 5:30 pm, Amer Neely [EMAIL PROTECTED] wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. A question I have, if someone here is familiar with Perl, does Python have something like

Re: Coming from Perl

2007-09-13 Thread Amer Neely
Ben Finney wrote: Amer Neely [EMAIL PROTECTED] writes: Well, I have checked everything I can but I'm getting '500 Internal Server Error'. This is the HTTP response code saying that the program that should have served the response document instead exited with an error. To debug, you

Re: Coming from Perl

2007-09-13 Thread Amer Neely
hosting server. Is this saying it can't find hello.py or one of the modules? -- Amer Neely w: www.webmechanic.softouch.on.ca/ Perl | MySQL programming for all data entry forms. Others make web sites. We make web sites work! -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from Perl

2007-09-13 Thread Amer Neely
sure /usr/bin/python is correct for your hosting environment? It's my understanding that the Windows shell doesn't pay much attention to the shebang line if the file type is associated with the proper application. But I tried your suggestion and got the same results. -- Amer Neely w

Re: Coming from Perl

2007-09-13 Thread Amer Neely
Amer Neely wrote: Richie Hindle wrote: [Amer] #!/usr/bin/python [...] On my home PC [...] [Thu Sep 13 04:16:03 2007] [error] [client 0.0.0.0] (OS 2)The system cannot find the file specified. That's because on your home PC Python is somewhere like C:\Python25\python.exe, not /usr/bin

Re: Coming from Perl

2007-09-13 Thread Amer Neely
Tim Golden wrote: Amer Neely wrote: Richie Hindle wrote: [Amer] #!/usr/bin/python [...] On my home PC [...] [Thu Sep 13 04:16:03 2007] [error] [client 0.0.0.0] (OS 2)The system cannot find the file specified. That's because on your home PC Python is somewhere like C:\Python25\python.exe

Re: Coming from Perl - SOLVED

2007-09-13 Thread Amer Neely
Amer Neely wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. A question I have, if someone here is familiar with Perl, does Python have something like Perl's 'here document'? I've just searched and read some postings on generating

Coming from Perl

2007-09-12 Thread Amer Neely
to refer to various template utilities. Is this the only way, or am I missing something? I'm used to generating X/HTML by hand, which makes the here document in Perl ideal for me. Also, many times a client already existing HTML code that I can use in a script. -- Amer Neely w

Re: Coming from Perl

2007-09-12 Thread Amer Neely
Ben Finney wrote: Amer Neely [EMAIL PROTECTED] writes: A question I have, if someone here is familiar with Perl, does Python have something like Perl's 'here document'? I'm not sure exactly what behaviour you want, but Python accepts literal strings to be triple-quoted (i.e. delimited

Re: Coming from Perl

2007-09-12 Thread Amer Neely
TheFlyingDutchman wrote: On Sep 12, 5:30 pm, Amer Neely [EMAIL PROTECTED] wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. A question I have, if someone here is familiar with Perl, does Python have something like Perl's 'here