|
|
|
|
SynopsisGet parameter values Syntaxpget [-abort] toolname parameter [ parameter2 ... ] Description`pget' gets the value of the specified parameter(s) from the given parameter file. All redirections and shell evaluations are performed. Example 3pget dmlist infile.p_value Will return the actual string stored in the parameter file for the value field of the parameter. Redirections and shell evaluations are NOT performed. Example 4pget -abort blah.par boo The '-abort' option causes pget to exit with an error when a parameter file specifies an inappropriate value. For example, if blah.par contained boo,i,h,notaninteger,,,"bad value" the above command would exit with an error, rather than prompting for a valid value (as it would if '-abort' were not given). This can be useful in scripts, where prompting for a valid value could cause a script to hang indefinitely. Parameters
Detailed Parameter DescriptionsParameter=parameter_file (string required filetype=input)Parameter file from which to retrieve data Name (plus optional path) of parameter file to get values from Parameter=parameter (string required filetype=input)Name of parameter Name of parameter to retrieve. Optionally can use the various parameter attributes listed below to return those values. Parameter Attributes
Parameter=-abort (notype)Abort flag If the parameter file contains an invalid value for the requested parameter, exit with an error (instead of prompting for a valid value). BugsSee the bugs page for this tool on the CIAO website for an up-to-date listing of known bugs. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |