#!/usr/bin/perl ################################################################################### # # Embperl - Copyright (c) 1997-2004 Gerald Richter / ECOS # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the Perl README file. # For use with Apache httpd and mod_perl, see also Apache copyright. # # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # $Id: embpexec.pl.templ,v 1.6 2004/01/23 06:50:54 richter Exp $ # ################################################################################### BEGIN { DB::parse_options("NonStop=1") if (defined (&DB::parse_options)) ; %Embperl::initparam = (use_env => 1) ; } use Embperl; use Embperl::Run ; die "Do not use as CGI script. Use 'embpcgi.pl' instead" if ($ENV{GATEWAY_INTERFACE}) ; Embperl::Run::run (@ARGV) ; __END__ =head1 NAME embpexec.pl - Run an Embperl file offline =head1 SYNOPSIS embpexec.pl [B<-o> I] [B<-l> I] [B<-d> I] I [I] =head1 DESCRIPTION Converts an HTML file (or any other ascii file) with embedded Perl statements into a standard HTML file. I is the full pathname of the HTML file which should be processed by Embperl. I is optional and has the same meaning as the environment variable C when invoked as a CGI script. That is, C contains everything following the first "?" in a URL. I should be URL-encoded. The default is no query string. =head1 OPTIONS =over 4 =item B<-o> I Optional. Gives the filename to which the output is written. The default is stdout. =item B<-o> I Optional. Gives the filename of the logfile. The default is F. =item B<-d> I Optional. Specifies the level of debugging (what is written to the log file). The default is nothing. See L for exact values. =back =head1 SEE ALSO L =head1 AUTHOR G. Richter (richter@dev.ecos.de) =end