/usr/bin/ncargrun is in ncl-ncarg 6.3.0-6build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #!/bin/csh -f
#
# $Id: ncargrun,v 1.8 2010-03-14 21:35:06 haley Exp $
#
foreach arg ($argv)
switch ($arg)
case "-o":
set get_output
breaksw
case "-t":
setenv NCARG_GKS_OUTPUT "| ctrans"
breaksw
default:
if ( $?get_output ) then
#
# Out of laziness, just set all five of these env. vars and
# not worry about which one actually gets used.
#
setenv NCARG_GKS_OUTPUT $arg
setenv NCARG_GKS_PSOUTPUT $arg
setenv NCARG_GKS_PDFOUTPUT $arg
setenv NCARG_GKS_CPSOUTPUT $arg
setenv NCARG_GKS_CPDFOUTPUT $arg
setenv NCARG_GKS_CPNGOUTPUT $arg
unset get_output
else
if ( ! $?program ) then
set program=$arg
else
echo "$0: too many program names"
exit 1;
endif
endif
endsw
end
./$program
|