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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
<html>
<head>
<!-- This file has been generated by unroff 1.0, 02/28/02 11:49:03. -->
<!-- Do not edit! -->
<STYLE TYPE="text/css">
<!--
A:link{text-decoration:none}
A:visited{text-decoration:none}
A:active{text-decoration:none}
-->
</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>
<a href="../doc/Welcome.html">Welcome</a>
<a href="../gallery/index.html">Gallery</a>
<a href="../doc/Contents.html">Handbook</a>
<td></tr></table>
</td></tr>
<td>
<br>
<br>
<title>Manual page for controlling_ploticus_from_other_programs_(automation)(PL)</title>
</head>
<body>
<h2>DESCRIPTION</h2>
Notes on executing ploticus under the control of another program
in an automated way.<tt> </tt>
<h2>STRATEGY</h2>
<p>
As of version 2.00, pl can be
<a href="cgi.html">
directly invoked as a CGI program
</a>
<p>
A
<a href="../download/ploticus.perl">
perl script
</a>
which implements a web interface to ploticus was
contributed by Tom McClure.<tt> </tt>
<p>
Since it is a command-line program,
<b>ploticus</b> can easily be invoked by other programs
automatically for unattended use.<tt> </tt>
For instance, web server CGI scripts can invoke <b>pl</b>
to build PNG or GIF data displays on demand. Or <b>pl</b> may be invoked
by <b>cron</b> to produce plots on a regular basis.<tt> </tt>
<p>
The invoking program can build a ploticus script on the fly,
or use one that has been created in advance.<tt> </tt>
<p>
The actual invocation can be done using the equivalent of
<tt>system()</tt>. For example, in C:
<dl>
<dt><dd><p>
<tt>system( "pl -gif myfile.p ITEM=hgxz" );</tt>
</dl>
<h2>VARIABLES</h2>
Variables may be useful for implementation of
changeable paramters (the invoking program
would execute <b>pl</b> and set variables
on the command line).<tt> </tt>
For example:
<p>
<tt>pl -gif status.p STARTDATE=010198 ENDDATE=062699 GROUP=hgc</tt>
<br>
<br>
</td></tr>
<td align=right>
<a href="Welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif">
</center>
</td></tr>
</table>
<p><hr>
Markup created by <em>unroff</em> 1.0, <tt> </tt> <tt> </tt>February 28, 2002.
</body>
</html>
|