Running a Program from the Shell Prompt

Calling a Globally Installed Program

To run a program or command which was installed by ARSC system administrators, it is usually enough to simply type the name of program at the shell prompt and press enter. For example, to start the program Emacs:

fish1 % emacs

On some ARSC systems, it may be necessary to load an appropriate module first. For example, the CrayPat utilities require that the perftools module be loaded:

fish1 % module load perftools/6.0.1 fish1 % pat_build -V CrayPat/X: Version 5.3.2 Revision 9087 04/17/12 12:31:06

Calling a Locally Installed Program

Programs which you have compiled or installed yourself are usually not in your shell's PATH, which is a list of directories where it looks for programs to run. For such programs, you must include the path to the executable when you call it. If your shell's current working directory is the same directory as your executable, you can call it by prepending a ./ path:

fish1 % cd /home/jdoe/bin fish1 % ./clisp i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Welcome to GNU CLISP 2.49 (2010-07-07)

Alternatively, it is possible to modify your shell's PATH variable so that it includes the directory where your program is located.

Back to Top