summaryrefslogtreecommitdiff
path: root/help/opie-sh/node11.html
blob: 81475d02ab336824c36272f12a3b3e47fe164ce7 (plain)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-1 (1.68)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Usage</TITLE>
<META NAME="description" CONTENT="Usage">
<META NAME="keywords" CONTENT="opie-sh-howto">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="opie-sh-howto.css">

<LINK REL="previous" HREF="node10.html">
<LINK REL="up" HREF="node10.html">
<LINK REL="next" HREF="node12.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html167"
  HREF="node12.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/local/share/lib/latex2html/icons/next.gif"></A> 
<A NAME="tex2html163"
  HREF="node10.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/local/share/lib/latex2html/icons/up.gif"></A> 
<A NAME="tex2html159"
  HREF="node10.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/local/share/lib/latex2html/icons/prev.gif"></A> 
<A NAME="tex2html165"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="file:/usr/local/share/lib/latex2html/icons/contents.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html168"
  HREF="node12.html">Input Dialog</A>
<B> Up:</B> <A NAME="tex2html164"
  HREF="node10.html">Fileviewer</A>
<B> Previous:</B> <A NAME="tex2html160"
  HREF="node10.html">Fileviewer</A>
 &nbsp <B>  <A NAME="tex2html166"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00041000000000000000">
Usage</A>
</H2>
There are only two flags for the fileviewer.  The first is ``-f'', which is used to both make opie-sh use the filbrowser, and to specify a file to show.  If there is no file specified, opie-sh takes the file from the standard input.  This allows you to do <code>command | opie-sh -f</code> to see the output of <code>command</code> in the file viewer.  Opie-sh reads in the file until it sees an end of file character, and then displays the text, so its probably best not to display the output from a cat of /dev/ttySA0.  You can send an eof by typing Ctr-d on the keyboard.  The other option that the file viewer takes is the ``-t'' flag, which sets the title, just like for the other dialogs.  If you do not specify the title, it defaults to the name of the file (which is null for stdin).  Both of these examples have the same output:

<P>
<PRE>
opie-sh -f filename -t "Title"

cat filename | opie-sh -f -t "Title"
</PRE>

<P>
<BR><HR>
<ADDRESS>

2002-05-15
</ADDRESS>
</BODY>
</HTML>