#set TITLE = "controlling ploticus from other programs (automation)
#include top

.SH DESCRIPTION
Notes on executing ploticus under the control of another program
in an automated way.

.SH STRATEGY
.LP
As of version 2.00, pl can be
#set FILE = "cgi.html"
#set TAG = "directly invoked as a CGI program"
#include link
.LP
A 
.ig >>
<a href="../download/ploticus.perl">
.>>
perl script 
.ig >>
</a>
.>>
which implements a web interface to ploticus was
contributed by Tom McClure.
.LP
Since it is a command-line program, 
\fBploticus\fR can easily be invoked by other programs
automatically for unattended use.
For instance, web server CGI scripts can invoke \fBpl\fR
to build PNG or GIF data displays on demand.  Or, \fBcron\fR
could invoke \fBpltab\fR to generate and print tables at
specified times.
.LP
The invoking program can build a ploticus script on the fly,
or use one that has been created in advance.
.LP
The actual invocation can be done using the equivalent of
\fCsystem()\fR.  For example, in C:
.IP
\fCsystem( "pl -gif myfile.p ITEM=hgxz" );\fR


.SH VARIABLES
Variables may be useful for implementation of 
changeable paramters (the invoking program
would execute \fBpl\fR or \fBpltab\fR, and set variables
on the command line).
For example: 
.LP
\fCpl -gif status.p STARTDATE=010198 ENDDATE=062699 GROUP=hgc\fR

#include bottom
