Purpose

Return the name of the scratch disk which
has the most space.

Usage

best_scratch_disk [ -h | -s ]

Arguments

-h = search only HQ scratch disks
-s = search only summit scratch disks

Output

The name of the scratch disk is output to stdout

Restrictions

None

Exit values

0 = normal completion
1 = wrong number of arguments

Examples

Find the biggest scratch disk at HQ or summit

> best_scratch_disk
/h/scratch54

Find the biggest scratch disk at HQ

> best_scratch_disk -h
/h/scratch54

Find the biggest scratch disk at summit

> best_scratch_disk -s
/h/scratch54