Previous Next        Current Page: NeXtMidas Training / Working with Files / The AUX List / The AUX Command
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   - The AUX List   
      - What is an AUX?   
      - Special AUX Entries   
      - The Read and Write AUX   
      - The AUX Command   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   + File Types   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   + Lab 4   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The AUX Command:
    • The AUXILIARY command (almost always shortened to AUX) is used to set the default read and write directories.
    • The AUX command takes in two arguments: <write> and <read>
      nM> AUX <write> <read>
      Where <read> is a bar-separated list of AUXs to read from. For example:
      nM> AUX HOME HOME|DAT|CWD
    • If given no arguments, the current set of AUXs is listed.
      nM> aux
      Write AUX     = 1
      Read AUX List = 1|CWD|DAT|99|RAM
      
      CWD      = /home/student/nxm230/                    <Type=File>
      HOME     = /home/student/                           <Type=File>
      HOMEPATH = /home/student/                           <Type=File>
      DAT      = /home/student/nxm230/nxm/sys/dat/        <Type=File>
      RAM      = ram:                                     <Type=Ram>
      1        = /midas/data1/+/                          <Type=File>
      99       = /midas/opt/xmxxx/xm/dat/                 <Type=File>
      WEB      = http://nextmidas.techma.com/nm/nxm/sys/dat/  <Type=Http>
    • It is common to include the write AUX as an entry in the read AUX and this is recommended.
    • Since the most common use of AUX is to make minor changes to the read AUX, there are a number of short-hand ways to set/modify the read AUX:
      • Specifying the entire list:
        nM> AUX ,, myaux|dat|cwd
      • Adding one to the list:
        nM> AUX ,, +myaux
      • Removing one from the list:
        nM> AUX ,, -myaux
      • See the AUX explain file for more details.
    • Important Note For Windows Users: There are a few special issues about setting AUXs on Windows. Most of the issues relate to drive letters and network-mapped drives. Please see the AUX explain file for more details.

back