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 pyt

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 Pyth

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

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

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 hor

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 ju

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 f

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'

Re: Coming from Perl

2007-09-13 Thread Amer Neely
C:\Python25\python.exe, not /usr/bin/python. > > Are you 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.

Re: Coming from Perl

2007-09-13 Thread Amer Neely
04:16:03 2007] [error] [client 0.0.0.0] (OS 2)The system cannot find the file specified. : couldn't create child process: 720002: hello.py I suspect it would be similar on my hosting server. Is this saying it can't find hello.py or one of the modules? -- Amer Neely w: www.we

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 respons

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

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, doe

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, doe

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

Coming from Perl

2007-09-12 Thread Amer Neely
ng HTML but they all seem 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