BINGO! (was Re: Problem getting a cgi program to run)

2001-05-31 Thread Gary Nielson
Running it from the command line, I did the following and it works: [- sub newsedit { my ($self, $department) = @_; chdir("/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/"); $ENV{QUERY_STRING} = "name=$department"; open FH, ("/usr/bin/perl /webServer/vir

Re: Problem getting a cgi program to run

2001-05-31 Thread Gerald Richter
> Hi, I tried that and called it with: > > [-$subs->newsedit(); > -] > > on an html page, but nothing is displayed. > Does the command from your page /usr/bin/perl /webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi work from the command line ? If not, what do you have to

Re: Problem getting a cgi program to run

2001-05-31 Thread Gary Nielson
Hi, I tried that and called it with: [-$subs->newsedit(); -] on an html page, but nothing is displayed. Here is the output from the log: http://www.cannonschool.org/Curriculum_and_Admissions/embperl.log?0&15635&SRC: On Thu, 31 May 2001, Gerald Richter wrote: > > > >

Re: Problem getting a cgi program to run

2001-05-31 Thread Gerald Richter
> I've suggested one thing below that may getting your first approach > going. > > There still must be a better way though... Creating a new instance of > the perl interperter is messy. > Of course there is, but the problem is the encryption. The decrytion is handle by Perl modules, so it shoul

Re: Problem getting a cgi program to run

2001-05-31 Thread Gerald Richter
> How would I write that in front of the call to perl. I did the following > but am getting errors: > > > [- > sub newsedit > { > unshift(@INC, '/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2') ; > open FH, ($ENV{QUERY_STRING} = "name=Homepage" "/usr/bin/perl > /webServe

Re: Problem getting a cgi program to run

2001-05-31 Thread Gary Nielson
How would I write that in front of the call to perl. I did the following but am getting errors: [- sub newsedit { unshift(@INC, '/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2') ; open FH, ($ENV{QUERY_STRING} = "name=Homepage" "/usr/bin/perl /webServer/virtualDW/cannon

Re: Problem getting a cgi program to run

2001-05-31 Thread Wim Kerkhoff
I've suggested one thing below that may getting your first approach going. There still must be a better way though... Creating a new instance of the perl interperter is messy. Gary Nielson wrote: > > Thank you! I had not realized you had sent a previous email as well. I > tried this solution an

Re: Problem getting a cgi program to run

2001-05-31 Thread Gary Nielson
Thank you! I had not realized you had sent a previous email as well. I tried this solution and so far, it has not worked -- and I have some questions about that. But I did find another solution that does work, and I wanted to share that and see if there is any disadvantage to this approach, if the

Re: Problem getting a cgi program to run

2001-05-31 Thread G.Richter
> Please forgive my newbie questions here. I set the following in > httpd.conf: > > # EMBPERL STUFF > SetEnv EMBPERL_ESCMODE 0 > SetEnv EMBPERL_OPTIONS 16,16384 > You have to add these two numbers together: SetEnv EMBPERL_OPTIONS 16700 > and then in the html file, I did the following: > > [- B