Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 728

GMT-doc-4.5.2-1.fc13.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
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>4.5 Command line history</TITLE>
<META NAME="description" CONTENT="4.5 Command line history">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="next" HREF="node58.html">
<LINK REL="previous" HREF="node36.html">
<LINK REL="up" HREF="node30.html">
<LINK REL="next" HREF="node58.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html3324"
  HREF="node58.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html3318"
  HREF="node30.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html3312"
  HREF="node56.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3320"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3322"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3325"
  HREF="node58.html">4.6 Usage messages, syntax-</A>
<B> Up:</B> <A NAME="tex2html3319"
  HREF="node30.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html3313"
  HREF="node56.html">4.4.15 Lat/Lon or Lon/Lat?:</A>
 &nbsp; <B>  <A NAME="tex2html3321"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3323"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001250000000000000000"></A>
<A NAME="sec:gmtcommands"></A><A NAME="17397"></A>
<A NAME="17398"></A>
<BR>
4.5 Command line history
</H1>

<P>
<A NAME="tex2html1115"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs ``remember'' the standardized command line options
(See Section&nbsp;<A HREF="node36.html#sec:stopt">4.4</A>) given during their previous invocations
and this provides a shorthand notation for complex options.
For example, if a basemap was created with an oblique Mercator
projection, specified as

<P>
<BR> 

<P>
<TT>-Joc170W/25:30S/33W/56:20N/1:500000</TT> 
<BR>
<P>
<BR>
then a subsequent <A NAME="tex2html1116"
  HREF="../man/psxy.html"><I><B>psxy</B></I></A><A NAME="18663"></A> command to plot symbols only needs
to state <B>-J</B>o in order to activate the same projection.  In
contrast, note that <B>-J</B> by itself will pick the most recently used projection.
Previous commands are maintained in the file <U>.gmtcommands4</U>,
of which there will be one in each directory you run the programs
from.  This is handy if you create separate directories for
separate projects since chances are that data manipulations
and plotting for each project will share many of the same options.
Note that an option spelled out on the command line will always
override the last entry in the <U>.gmtcommands4</U> file and,
if execution is successful, will replace this entry as the
previous option argument in the <U>.gmtcommands4</U> file.
If you call several <A NAME="tex2html1117"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> modules piped together then <A NAME="tex2html1118"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> cannot
guarantee that the <U>.gmtcommands4</U> file is processed
in the intended order from left to right.  The only guarantee
is that the file will not be clobbered since <A NAME="tex2html1119"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> uses advisory
file locking.  The uncertainty in processing order makes the use
of shorthands in pipes unreliable.  We therefore recommend that you
only use shorthands in single process command lines, and spell out
the full command option when using chains of commands connected with
pipes.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html3324"
  HREF="node58.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html3318"
  HREF="node30.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html3312"
  HREF="node56.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3320"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3322"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3325"
  HREF="node58.html">4.6 Usage messages, syntax-</A>
<B> Up:</B> <A NAME="tex2html3319"
  HREF="node30.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html3313"
  HREF="node56.html">4.4.15 Lat/Lon or Lon/Lat?:</A>
 &nbsp; <B>  <A NAME="tex2html3321"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3323"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>