HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
swask(1M) swask(1M)
$HOME/.sw/sessions/
. You can recall a session file with the
-S option.
-f software_file
Reads the list of software_selections from software_file instead of (or in addition to) the
command line.
-s source Specifies the source depot (or tape) from which software is selected for the ask opera-
tion. (SD can read both tar and
cpio tape depots.)
-S session_file
Executes swask based on the options and operands saved from a previous session, as
defined in session_file. You can save session information from a command-line session
with the
-C session_file option.
-t targetfile Specifies a default set of targets for
swask.
-x option=value
Sets the session option to value and overrides the default value (or a value in an alter-
nate option_file specified with the
-X option). Multiple -x options can be specified.
-X option_file Reads the session options and behaviors from option_file.
Operands
swask supports two types of operands: software selections followed by target selections. These operands
are separated by the "at" (@) character. This syntax implies that the command operates on "software selec-
tions at targets".
Software Selections
The selections operands consist of software_selections.
swask supports the following syntax for each software_selection:
bundle
[.product[.subproduct][.fileset]][,version]
product[.subproduct][.fileset][,version]
The = (equals) relational operator lets you specify selections with the following shell wildcard and
pattern-matching notations:
[], *, ?
Bundles and subproducts are recursive. Bundles can contain other bundles and subproducts can
contain other subproducts.
The \* software specification selects all products. Use this specification with caution.
The version component has the form:
[,r <op> revision][,a <op> arch][,v <op> vendor]
[,c
<op> category][,q=qualifier][,l=location]
[,fr
<op> revision][,fa <op> arch]
location applies only to installed software and refers to software installed to a location other than
the default product directory.
fr and fa apply only to filesets.
r , a , v , c , and l apply only to bundles and products. They are applied to the leftmost bundle
or product in a software specification.
The <op> (relational operator) component can be of the form:
=, ==, >=, <=, <, >,or!=
which performs individual comparisons on dot-separated fields. For example, r>=B.10.00
chooses all revisions greater than or equal to B.10.00. The system compares each dot-separated
field to find matches.
The = (equals) relational operator lets you specify selections with the shell wildcard and pattern-
matching notations:
[], *, ?, !
For example, the expression r=1[01].* returns any revision in version 10 or version 11.
434 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update