<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN"> <html> <head> <title>MHonArc Resources: STDIN</title> </head> <body> <address> <a href="../resources.html#stdin">MHonArc Resource List</a><br> </address> <hr> <h1>STDIN</h1> <!-- *************************************************************** --> <hr> <h2>Syntax</h2> <dl> <dt><strong>Envariable</strong><dt> <dd><p>N/A </p> </dd> <dt><strong>Element</strong><dt> <dd><p>N/A </p> </dd> <dt><strong>Command-line Option</strong><dt> <dd><p><br> <code>-stdin <var>filename</var></code> </p> </dd> </dl> <!-- *************************************************************** --> <hr> <h2>Description</h2> <p>STDIN can be used to specify a file to treat as standard input. </p> <p>Note, most system shells (Unix) provide the ability to redirect standard input from a file or other process. STDIN is provided where such functionality is not available or easy to achieve. </p> <!-- *************************************************************** --> <hr> <h2>Default Setting</h2> <p>The default location of standard input, which is usually the terminal. </p> <!-- *************************************************************** --> <hr> <h2>Resource Variables</h2> <p>N/A </p> <!-- *************************************************************** --> <hr> <h2>Examples</h2> <p>One way to perform an <a href="add.html">ADD</a> operation for a single message is something like the following: </p> <pre> shell> <b>mhonarc -add -outdir /path/to/archive -stdin mesg.822</b> </pre> <p>However, any decent shell would allow: </p> <pre> shell> <b>mhonarc -add -outdir /path/to/archive < mesg.822</b> </pre> <!-- *************************************************************** --> <hr> <h2>Version</h2> <p>2.4.2 </p> <!-- *************************************************************** --> <hr> <h2>See Also</h2> <p> <a href="stderr.html">STDERR</a>, <a href="stdout.html">STDOUT</a> </p> <!-- *************************************************************** --> <hr> <address> 00/10/28 11:13:09<br> <img align="top" src="../monicon.gif" alt=""> <a href="http://www.pobox.com/~ehood/mhonarc.html" ><strong>MHonArc</strong></a><br> Copyright © 1999, <a href="http://www.pobox.com/~ehood" >Earl Hood</a>, <a href="mailto:mhonarc@pobox.com" >mhonarc@pobox.com</a><br> </address> </body> </html>