HP-UX HB v13.00 Ch-05 - SD-UX

HP-UX Handbook Rev 13.00 Page 9 (of 49)
Chapter 05 Software Distributor (SD-UX)
October 29, 2013
$HOME/.sw/sessions/{ command}.last. This file is overwritten on
each invocation.
You can also save session information from interactive or command-line sessions. From an
interactive session, you can save session information into a file at any time by selecting the Save
Session or Save Session As option from the File menu. From a command-line session, save
session information by executing swinstall or swcopy with the -C session_file option.
A session file uses the same syntax as the defaults files. You can specify an absolute path for a
session file. If you do not specify a directory, the default location for a session file is
$HOME/.sw/sessions/.
To re-execute a saved session from an interactive session, use the Recall Session option from the
File menu. To re-execute a session from a command-line, specify the session file as the argument
for the -S session_file option of swinstall or swcopy.
Note that when you re-execute a session file, the values in the session file take precedence over
values in the system defaults file. Likewise, any command line options or parameters that you
specify when you invoke swinstall or swcopy take precedence over the values in the session
file.
NOTE: Use of session files is not recommended with swremove because the session file could
include software selections that you do not want included in the removal operation.
Setting Default Values for Command Options
SD-UX commands have extensive options that alter command behavior. The
/usr/lib/sw/sys.defaults file is a template that lists and explains each option, default values,
all other allowable values, and the resulting system behavior for each. These options are listed as
comments that you can copy into the system defaults file (/var/adm/sw/defaults) or your
personal defaults file ($HOME/.sw.defaults).
Values in these option files are specified using this syntax:
[command.]option=value
These rules govern the way the defaults work:
1. Option values in /usr/lib/sw/sys.defaults is only usable as a template for copying to
other option files.
2. Option values in /var/adm/sw/defaults file affect all users in a system.
3. Option values in your personal $HOME/.sw.defaults file affect only you and not the
entire system.