.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: controlling ploticus from other programs (automation)</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>controlling ploticus from other programs (automation)</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.40 Jan'08
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH controlling_ploticus_from_other_programs_(automation) PL "15-JAN-2008   PL ploticus.sourceforge.net"

.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
.ig >>
<a href="cgi.html">
.>>
\0directly invoked as a CGI program
.ig >>
</a>
.>>
.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 \fBpl\fR may be invoked 
by \fBcron\fR to produce plots on a regular basis.
.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 and set variables
on the command line).
For example: 
.LP
\fCpl -gif status.p STARTDATE=010198 ENDDATE=062699 GROUP=hgc\fR

.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>
