Re: beginner here - with basic cgi trouble

2001-05-11 Thread Matt Cauthorn
Try the program dos2unix...I've noticed a bunch of posts talking about getting rid of ^M or whatever, but I think this does it in one shot from the command line. I've used it with great success. From the man page: dos2unix - convert text file from DOS format to ISO format. FreeBSD is so rich wit

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Jeff Pinyan
On May 10, David A. Desrosiers said: > >>It didn't work ... >>the reason .. Attack of the ^M 's > > perl is your friend: > > perl -pi -e 's#\r\n#\n#g' formail.pl Why use s/// if you don't have to? japhy% perl -pi -e 'tr/\r//d' files... Why use Perl if you don't have to?

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Brett W. McCoy
On Thu, 10 May 2001, Xun_Dog wrote: >The last script I downloaded for use was >a formail.pl (std stuff from a Perl archive on the Web) > >I had to configure it . i.e. @referrers etc. ... > >It didn't work ... > >the reason .. Attack of the ^M 's > > > open up these scri

Re: beginner here - with basic cgi trouble

2001-05-10 Thread David A. Desrosiers
>It didn't work ... >the reason .. Attack of the ^M 's perl is your friend: perl -pi -e 's#\r\n#\n#g' formail.pl /d

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Xun_Dog
Yo Chip, The last script I downloaded for use was a formail.pl (std stuff from a Perl archive on the Web) I had to configure it . i.e. @referrers etc. ... It didn't work ... the reason .. Attack of the ^M 's open up these scripts with fox-editor if you have it and se

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Chip Wiegand
-- Original Message -- From: Matt Cauthorn <[EMAIL PROTECTED]> Date: Thu, 10 May 2001 08:43:34 -0700 (PDT) >Chip -- try this in your cgi bin. Type perldoc CGI for more info. > > #!/usr/bin/perl -w > use CGI qw/:standard/; > print header, > start_html(

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Matt Cauthorn
Chip -- try this in your cgi bin. Type perldoc CGI for more info. #!/usr/bin/perl -w use CGI qw/:standard/; print header, start_html('hello world'), h1('hello world'), end_html; -- Cgi.pm makes everything easy. In your code below, you fogot to put the first tag... ---

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Chip Wiegand
-- Original Message -- From: "Brett W. McCoy" <[EMAIL PROTECTED]> Date: Thu, 10 May 2001 09:39:29 -0400 (EDT) >On Thu, 10 May 2001, Chip Wiegand wrote: > >> I have the permissions set to 755, so it should be executable. When I >> try ./formparser.cgi I get

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Brett W. McCoy
On Thu, 10 May 2001, Chip Wiegand wrote: > I have the permissions set to 755, so it should be executable. When I > try ./formparser.cgi I get ./formparser.cgi: not found, but when I > run perl formparser.cgi it runs fine. I noticed when doing ls -la that > the four scripts in the cgi-bin all have

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Chip Wiegand
It appears "Brett W. McCoy" <[EMAIL PROTECTED]>, on Wed, 9 May 2001 06:06:37 -0400 (EDT) wrote something like: > On Tue, 8 May 2001, Chip Wiegand wrote: > > > - server log - > > [error](2)No such file or directory. exec of /usr/local/apache/cgi-bin/ > > formparser.cgi failed > > [error][192.

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Chip Wiegand
It appears "Brett W. McCoy" <[EMAIL PROTECTED]>, on Wed, 9 May 2001 23:30:56 -0400 (EDT) wrote something like: > On Thu, 10 May 2001, lemoninsz wrote: > > > hi,i have the same problem,when i do ./emailupload.cgi,error like this: > > "bash: ./emailupload.cgi: No such file or directory" > > > > th

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Chip Wiegand
It appears Xun_Dog <[EMAIL PROTECTED]>, on Thu, 10 May 2001 06:01:07 -0400 wrote something like: > Yo Chip, >The last script I downloaded for use was >a formail.pl (std stuff from a Perl archive on the Web) >I had to configure it . i.e. @referrers etc. ... >It didn't work .

Re: beginner here - with basic cgi trouble

2001-05-10 Thread Matt Cauthorn
Type "which perl" at the command line to see the path to your perl interpreter. --- "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > On Thu, 10 May 2001, lemoninsz wrote: > > > hi,i have the same problem,when i do ./emailupload.cgi,error like this: > > "bash: ./emailupload.cgi: No such file or dir

Re: beginner here - with basic cgi trouble

2001-05-09 Thread Brett W. McCoy
On Thu, 10 May 2001, lemoninsz wrote: > hi,i have the same problem,when i do ./emailupload.cgi,error like this: > "bash: ./emailupload.cgi: No such file or directory" > > the other cgi scripts work well,but emailupload.cgi.the following is the >emailupload.cgi: > #!/usr/bin/perl

Re: beginner here - with basic cgi trouble

2001-05-09 Thread Phillip Bruce
"Brett W. McCoy" wrote: > > On Tue, 8 May 2001, Chip Wiegand wrote: > > > - server log - > > [error](2)No such file or directory. exec of /usr/local/apache/cgi-bin/ > > formparser.cgi failed > > [error][192.168.1.8] Premature end of script headers: /usr/local/apache/ > > cgi-bin/form

Re: beginner here - with basic cgi trouble

2001-05-09 Thread Brett W. McCoy
On Tue, 8 May 2001, Chip Wiegand wrote: > - server log - > [error](2)No such file or directory. exec of /usr/local/apache/cgi-bin/ > formparser.cgi failed > [error][192.168.1.8] Premature end of script headers: /usr/local/apache/ > cgi-bin/formparser.cgi > - I see the file DOES exist

Re: beginner here - with basic cgi trouble

2001-05-08 Thread David A. Desrosiers
> [error](2)No such file or directory. exec of /usr/local/apache/cgi-bin/ > formparser.cgi failed > [error][192.168.1.8] Premature end of script headers: /usr/local/apache/ > cgi-bin/formparser.cgi > - I see the file DOES exist as formparser.cgi in the directory path shown > in the er

Re: beginner here - with basic cgi trouble

2001-05-08 Thread Chip Wiegand
Okay, here is some more info on the error messeges: - the file, formparser.cgi, has 755 permissions - the message - Internal Server Error The server encountered an internal error or misconfiguration and was unable to compl

Re: beginner here - with basic cgi trouble

2001-05-07 Thread Ross Larner
If you have shell access to the server where the scripts live, you should be able to see more descriptive error messages by executing the script directly, ex: $ /usr/local/cgi-bin/yourFile.cgi Ross At 07:56 PM 5/7/2001 -0700, Chip Wiegand wrote: >Hi, >I have download some perl/cgi scripts from

Re: beginner here - with basic cgi trouble

2001-05-07 Thread Brett W. McCoy
On Mon, 7 May 2001, Chip Wiegand wrote: > Any suggestions as to what I should be changing so I can get some scripts > to run properly? It's hard to say, not knowing what the scripts are, what modules or libraries they use, or what kinds of errors they are spewing out. 'Internal Server Error' can

beginner here - with basic cgi trouble

2001-05-07 Thread Chip Wiegand
Hi, I have download some perl/cgi scripts from various web sites and am having the darndest time getting them to work. I have my own apache web server to work on, so cgi access is no problem. I am running FreeBSD on my client machine to download the scripts, do the configuring, then copy the files