WXP
Program Reference

wxpres

Sections

NAME

wxpres - Resource query

SYNOPSIS

wxpres [parameters] [value]

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default wxp.cfg Sets the name of the resource file.
-na=name name the program name Specifies the name used in resource file parsing.
-me=level message out2 Specifies level of messages to be displayed
  • print - resource value
  • out1 - resource name
  • out2 - resource source: base, file, env, command
  • out3 - full resource information/li>
resource

DESCRIPTION

The resource file is usually processed by the application programs to set initial program defaults, but in some cases, shell scripts may need to parse for these resource values. Also, users may wish to query resource specifications before running a particular application. Here are some examples:

To display all global defaults, use a ".", a period:

> wxpres .
prog: wxpres (base)
name: wxpres (base)
default: /home/wxp/etc (env)
file_path: /home/wxp/etc:/usr/local/etc/wxp (file)
data_path: /data/nwstg/data:/home/wxp/data (file)
con_path: /data/nwstg/convert:/home/wxp/convert (file)
watch_path: /data/nwstg/data (file)
text_path: /data/nwstg/text (file)
model_path: /data/nwstg/model:/home/wxp/nwstg2/model (file)
sat_path: /data/goes/sat (file)
image_path: ~/image:/home/wxp/image (file)
map_file: wxp.map (file)
grid_path: ~/grid (file)
raw_path: ~/raw (file)
color_table: wxp.clr (file)
filename: . (command)

To display information for a particular resource, just list the desired resource. By default, the resource name, value and source are displayed. The source can be:

For example:

> wxpres data_path
data_path: /data/nwstg/data:/home/wxp/data (file)

For full resource information, set the message level to "out3":

> wxpres data_path -me=out3,-mess
Name: data_path
  Value: /data/nwstg/data:/home/wxp/data
  Source: file
  Command line: dp
  Env. variable: wxpdpath or wxpdata_path
  Synopsis: -dp path Data path

To display information for a particular named resource, just specify the name resource:

> wxpres -name satplot
prog: wxpres (base)
name: satplot (command)
default: /home/wxp/etc (env)
file_path: /home/wxp/etc:/usr/local/etc/wxp (file)
data_path: /data/nwstg/data:/home/wxp/data (file)
con_path: /data/nwstg/convert:/home/wxp/convert (file)
text_path: /data/nwstg/text (file)
model_path: /data/nwstg/model:/home/wxp/nwstg2/model (file)
sat_path: /data/goes/sat (file)
image_path: ~/image:/home/wxp/image (file)
map_file: wxp.map (file)
grid_path: ~/grid (file)
raw_path: ~/raw (file)
background: def (file)
color_table: sat.clr (file)

EXAMPLES

FILES

SEE ALSO


Last updated November 2013