Sample SSI


The "#exec" command


Source for the hello.pl program:
#!/usr/bin/perl

print "Content-Type: text/plain

Hello world!
This is the output of hello.pl!
";

exit(0);

Using the "cmd" tag

<!--#exec cmd="/usr/local/lib/httpd/cgi-bin/scott/hello.pl" -->


Using the "cgi" tag

<!--#exec cgi="/cgi-bin/scott/hello.pl" -->


!
(<!--#exec cmd="/usr/bin/ddate" -->)
Scott Doty
scott@sonic.net