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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
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>1.3.3 Standard error (stderr)</TITLE>
<META NAME="description" CONTENT="1.3.3 Standard error (stderr)">
<META NAME="keywords" CONTENT="tutorial">
<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 v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="tutorial.css">
<LINK REL="next" HREF="node18.html">
<LINK REL="previous" HREF="node16.html">
<LINK REL="up" HREF="node14.html">
<LINK REL="next" HREF="node18.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html644"
HREF="node18.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html638"
HREF="node14.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html632"
HREF="node16.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html640"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html642"
HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html645"
HREF="node18.html">1.3.4 File name expansion</A>
<B> Up:</B> <A NAME="tex2html639"
HREF="node14.html">1.3 The UNIX Environment:</A>
<B> Previous:</B> <A NAME="tex2html633"
HREF="node16.html">1.3.2 Piping ()</A>
  <B> <A NAME="tex2html641"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html643"
HREF="node79.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00333000000000000000">
1.3.3 Standard error (<I>stderr</I>)</A>
</H2>
<A NAME="194"></A>
<A NAME="195"></A>
<P>
Most <I>UNIX</I> and <A NAME="tex2html65"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> programs will on occasion write error messages.
These are typically written to a separate data stream called
<I>stderr</I> and can be redirected separately from the standard
output (which goes to <I>stdout</I>). To redirect error messages
we use
<P>
<PRE>
UNIXprogram >& errors.log
</PRE>
<P>
When we want to save both program output and error messages to
separate files we use the following syntax:
<BR>
<P>
<PRE>
(GMTprogram > output.d) >& errors.log
</PRE>
<P>
<BR><HR>
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|