>
> Under embperl, I tried that and it didn't work. I then set up:
>
> [- $name = "Homepage" -]
> [- Execute
("/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi") -
]
>

In 1.3.x Execute executes a Embperl page, since your cgi doesn't contain any
[-/+ +/-] etc. blocks, Embperl will just pass it thru.
(In Embperl 2.0, you can say Execute ({inputfile => 'foo.cgi', syntax =>
'Perl'}) to let a perl script running, but this also cannot deal with
encryted Perl sources).

If you had a normal Perl script, you could simply say:

[-
do "/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi"
;
die $@ if ($@) ;
-]

this would execute the whole Perl programm, but again this will not deal
with encyrpted scripts. To get this working with an unaltered sources, you
have to additionaly set the optRedirectStdout  in your httpd.conf (not
inside the page!) .

To deal with encrypted sources you have to start an additional Perl
interpreter and catch the output:

[-

open FH, "/usr/bin/perl
/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi|" or
die "Cannot start cgi" ;
@output = <FH> ;
close FH ;

# you may alter the output here, e.g. remove http header generated by the
script
print OUT @output ;
-]

Make sure to set optRawInput, or to escape <FH> (or write &lt;FH&gt;)
otherwise Embperl will remove it.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to