ampac

ampac — Execute AMPAC input files.

Description

The ampac shell command is the primary means of executing AMPAC input files. The ampac utility runs in the background (but can also run in the foreground using the -fg option) and can run a batch of AMPAC jobs sequentially. A simple summary of the each AMPAC job is written to screen just prior to executing to that job. To execute large number of files, mampac may be preferable.

By default, ampac avoids overwriting old AMPAC result files by appending a version number to each of the result files. For example, ampac temp.dat will produce temp.out, temp.arc, temp.vis, and perhaps other files. If temp.out already exists, then ampac temp.dat will instead produce temp.out~1, temp.arc~1, temp.vis~1, etc. The version number is increased incrementally to avoid overwriting any previous versions. This feature may be turned off using the -nv flag. Without version control, result files may be silently overwritten.

Usage:

		ampac [-fg] [-nv] [filename(s)]
		ampac help

options

-fg

Run job in foreground [default run in background].

-nv

Turn off version control [default on].

filename(s)

One or more AMPAC input files of type *.dat. Multiple filenames can be entered separated by spaces. UNIX file globbing (for example, using * as a wildcard) is also supported.

Interactive Use

If no file is specified then ampac will interactively prompt the user for a file. In place of an input file, the user may also enter:

h or help

Brings up help documentation in the form of a text file.

q or quit

Exits interactive mode.

Output:

Output from AMPAC is written to the screen. For example, output from ampac test01.dat test02.dat will be similar to:

Submitting AMPAC 8.16 Data file:  test01.dat
Running in Temporary Directory:  amp24412
AMPAC: /home/semo/Ampac/program/ampac.exe

Thu Feb 19 11:19:11 CST 2004

Submitting AMPAC 8.16 Data file:  test02.dat
Running in Temporary Directory:  amp24412
AMPAC: /home/semo/Ampac/program/ampac.exe

Thu Feb 19 11:19:11 CST 2004
0.7u 0.6s 0:01 131%
THAT'S ALL FOLKS...

See also:

Chapter 5, Presenting Input to the Program