mpfserver Manual
 
 
 Examples | execute external programs (e.g. CGI-scripts)
execute a CGI-/Perl-script
{mpf:exec=E:\\Apache2\cgi-bin\test.pl}

script must return values to display using "print"-directive:
#!C:\perl\bin\perl.exe
# (test.pl)
use CGI qw(:standard);
print "Content-type: text/html\r\n";
print "Hello World.";
this example script would return string "Hello World."
execute a batch-file (*.bat)
{mpf:exec=E:\\Apache2\cgi-bin\test.bat}

script must return values to display using "echo"-directive:
# (test.bat)
echo Hello World.
this example script would return string "Hello World."
execute a VisualBasic-Script (*.vbs)
{mpf:cscript E:/test.vbs}

script must return values to stdout:
set output = wscript.StdOut
output.WriteLine("Hello World")
this example script would return string "Hello World."
Create JAR-Archive with Java (*.vbs)
{mpf:exec=E:/jdk/bin/jar>jar xvf E:/test.sxc content.xml meta.xml settings.xml styles.xml manifest.xml}
this example would create an OpenOffice document
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).