/usr/bin/embpexec is in libembperl-perl 2.5.0-11build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | #!/usr/bin/perl
###################################################################################
#
# Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
# Embperl - Copyright (c) 2008-2014 Gerald Richter
#
# 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 1578075 2014-03-16 14:01:14Z richter $
#
###################################################################################
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<outputfile>] [B<-l> I<logfile>] [B<-d> I<debugflags>] I<htmlfile> [I<query_string>]
=head1 DESCRIPTION
Converts an HTML file (or any other ascii file) with embedded Perl statements into a standard
HTML file.
I<htmlfile> is the full pathname of the HTML file which should be
processed by Embperl.
I<query_string> is optional and has the same meaning as the
environment variable C<QUERY_STRING> when invoked as a CGI
script. That is, C<QUERY_STRING> contains everything following the
first "?" in a URL. I<query_string> should be URL-encoded. The default
is no query string.
=head1 OPTIONS
=over 4
=item B<-o> I<outputfile>
Optional. Gives the filename to which the output is written. The
default is stdout.
=item B<-o> I<logfile>
Optional. Gives the filename of the logfile. The default is
F</tmp/embperl.log>.
=item B<-d> I<debugflags>
Optional. Specifies the level of debugging (what is written to the log
file). The default is nothing. See L<HTML::Embperl/EMBPERL_DEBUG> for
exact values.
=back
=head1 SEE ALSO
L<Embperl>
=head1 AUTHOR
G. Richter (richter at embperl dot org)
|