<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%=======================================================================
\subsection{Preliminaries: The Shell Path}
\label{sec_shell_path}

This lab sequence will use applications in the following locations:

\begin{packed_itemize}
\item \var{moos-ivp/bin}
\item \var{moos-ivp/scripts}
\item \var{moos-ivp-2680/bin}
\item \var{moos-ivp-extend/bin}     (your code)
\end{packed_itemize}

\vspace{0.1in}
\noindent
The \var{moos-ivp-2680} tree will hold a few apps specific to this
lab, e.g., \app{uFldRescueMgr}, and the \var{moos-ivp-extend} tree
will hold your app, \app{pGenRescue}. To augment your path, edit your
\var{.bashrc} file as below:

\vspace{0.1in}
\begin{fileverb}  
PATH+=:~/moos-ivp/bin             (this was likely already there) 
PATH+=:~/moos-ivp/scripts         (this was likely already there) 
PATH+=:~/moos-ivp-extend/bin  
PATH+=:~/moos-ivp-2680/bin  
export PATH                       (this was likely already there)
\end{fileverb}
\vspace{0.1in}

\vspace{0.1in}
\noindent
You can confirm this by examining the contents of the \var{\$PATH} bash environment
variable:

\vspace{0.1in}
\begin{consoleverb}
$ echo $PATH
\end{consoleverb}
\vspace{0.1in}

\noindent
Confirmation can also be done with the GNU/Linux \cmd{which} function:

\begin{consoleverb}
 $ which pHelmIvP
 /Users/you/moos-ivp/bin/pHelmIvP              (or /home/you/... in GNU/Linux)
 $ which uFldRescueMgr
 /Users/you/moos-ivp-2680/bin/uFldRescueMgr    (or /home/you/... in GNU/Linux)
\end{consoleverb}


\vspace{0.1in}
\noindent
There exists a convenience function in \var{moos-ivp/scripts} called
\cmd{path\_shell.sh}. This command will list your \var{\$PATH}
environment variable in a more human readable format.  Normally the
output is one long line with each directory separated by a colon:

\begin{consoleverb}
 $ echo $PATH
 /usr/bin:/usr/local/bin:/bin:/Users/janedoe/bin:/Users/janedoe/project-pavlab/utils/bin:
 /Users/janedoe/moos-ivp-janedoe/bin:/Users/janedoe/moos-ivp-pavlab/bin:/Users/janedoe/mo
 os-ivp-extend/bin:/Users/janedoe/moos-ivp-2680/trunk/bin:/Users/janedoe/moos-ivp/trunk/b
 in:/Users/janedoe/pablo-common/bin
\end{consoleverb}

\vspace{0.1in}
\noindent
The \cmd{path\_shell.sh} utility will separate each directory out to a
single line:

\begin{consoleverb}
 $ path_shell.sh
 1: /usr/bin
 2: /usr/local/bin
 3: /bin
 4: /Users/janedoe/bin
 5: /Users/janedoe/project-pavlab/utils/bin
 6: /Users/janedoe/moos-ivp-janedoe/bin
 7: /Users/janedoe/moos-ivp-pavlab/bin
 8: /Users/janedoe/moos-ivp-extend/bin
 9: /Users/janedoe/moos-ivp-2680/trunk/bin
 10: /Users/janedoe/moos-ivp/trunk/bin
 11: /Users/janedoe/pablo-common/bin
\end{consoleverb}




</pre></body></html>