<!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="node61.html"> <LINK REL="previous" HREF="node39.html"> <LINK REL="up" HREF="node33.html"> <LINK REL="next" HREF="node61.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html3474" HREF="node61.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3468" HREF="node33.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3462" HREF="node59.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3470" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3472" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3475" HREF="node61.html">4.6 Usage messages, syntax-</A> <B> Up:</B> <A NAME="tex2html3469" HREF="node33.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3463" HREF="node59.html">4.4.15 Lat/Lon or Lon/Lat?:</A> <B> <A NAME="tex2html3471" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3473" HREF="node258.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION001250000000000000000"></A> <A NAME="sec:gmtcommands"></A><A NAME="18487"></A> <A NAME="18488"></A> <BR> 4.5 Command line history </H1> <P> <A NAME="tex2html1215" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs ``remember'' the standardized command line options (See Section <A HREF="node39.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="tex2html1216" HREF="../man/psxy.html"><I><B>psxy</B></I></A><A NAME="19753"></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="tex2html1217" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> modules piped together then <A NAME="tex2html1218" 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="tex2html1219" 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="tex2html3474" HREF="node61.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3468" HREF="node33.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3462" HREF="node59.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3470" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3472" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3475" HREF="node61.html">4.6 Usage messages, syntax-</A> <B> Up:</B> <A NAME="tex2html3469" HREF="node33.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3463" HREF="node59.html">4.4.15 Lat/Lon or Lon/Lat?:</A> <B> <A NAME="tex2html3471" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3473" HREF="node258.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2011-02-27 </ADDRESS> </BODY> </HTML>