Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

1.4.2 Target Selections
Target selections follow software and source depot selections. If no target selection is named, the
target on which the operation will be performed is assumed to be the root (/) directory on your
local host. So, you do not have to use the @ sign and [host][:][/directory] designation
(described below) if you are operating on the local host or default depot directory.
1.4.2.1 Syntax
The target_selections syntax is identical for all SD-UX commands that require it:
@ [host][:][/directory] | [./relative_path] | [../relative_path]
The @ character is optional if you are using the local host and default directory. If it is used,
it acts as a separator between operands and the destination.
Only one @ character is needed.
You can specify the host by its host name, domain name, or internet address. A directory can
either be an absolute pathname, or a relative pathname. If a host is specified, the directory
must be an absolute path. To specify a relative_path when no host is specified, the
relative_path must start with ./ or ../; otherwise, the specified name is considered as
a host.
The internet address can be in IPv4 format with dot notation or in IPv6 format. When IPv6
internet address is specified, it can be optionally enclosed within square brackets [ and ].
The : (colon) is required if you specify both a host and directory.
On some systems, the @ character is used as the kill function. Type stty on your system to
see if the @ character is mapped to any other function on your system. If it is, remove the
mapping, change the mapping, or use \@.
1.4.2.2 Target Files
To keep the command line shorter, target selection input files let you specify long lists of targets.
With a target selection file, you only have to specify the single file name.
The -t command-line option lets you specify a target file. For example:
swinstall -f mysoft -s /mnt/cd -t mytargs
In this example, the file mytargs (which resides in the current working directory) contains a list
of target selections for the swinstall command.
In the target file, blank lines and comments (lines beginning with #) are ignored. Each target
selection must be specified on a separate line and must consist of a host name or network address,
optionally followed by a colon and a full path:
host[:/directory]
1.4.3 Using Command Options
You can control many SD-UX command policies and behaviors by setting the appropriate command
options. You can change the default values of options using predefined files or values you specify
directly on the command-line. Altering default values with files can help when you don’t want to
specify command behavior every time you invoke the command.
These rules govern the way the defaults work:
1. Options in /var/adm/sw/defaults affect all SD-UX commands on that system. This file
can change the default behavior for all commands to which an option applies or for specific
commands only.
2. Options in your personal $HOME/.swdefaults file affect only you and not the entire system.
1.4 Working from the Command Line 37