DEIMOS
outdir script

Name

outdir -- set/show the current output directory

Purpose

With no arguments, print the name of the current data
directory. With one argument, change the OUTDIR keyword to
point to the named directory (creating it if requested). If
files already exist in the output directory, the FRAMENO is
reset to be 1 higher than the highest existing image number in
order to prevent overwriting of existing images.

Usage

outdir [dir]

Arguments

dir = new directory to which to set the OUTDIR keyword

Output

output directory name is printed to stdout

Restrictions


Exit values

0 = normal completion
1 = wrong number of arguments
2 = unable to create directory

Example

1) to show the existing output directory:
outdir
2) to set the OUTDIR to "/sdata1001/deimos1/2003jan01":
outdir /sdata1001/deimos1/2003jan01

See Also

The shell script outdir
DEIMOS script index


Go to: DEIMOS Home Page - Instruments Home Page - Keck Home Page

Last modified: Mon Apr 12 16:06:50 2010