swask.1m (2012 03)
s
swask(1M) swask(1M)
0 If there were no warnings and no errors.
1 If there were errors.
2 If there were warnings but no errors.
run_as_superuser=true
This option controls SD’s nonprivileged mode. This option is ignored (treated as true)
when the invoking user is super-user.
When set to the default value of true, SD operations are performed normally, with per-
missions for operations either granted to a local super-user or set by SD ACLs. (See
swacl(1M) for details on ACLs.)
When set to false and the invoking user is local and is not super-user, nonprivileged
mode is invoked:
• Permissions for operations are based on the user’s file system permissions.
• SD ACLs are ignored.
• Files created by SD have the uid and gid of the invoking user, and the mode of created
files is set according to the invoking user’s umask.
SD’s nonprivileged mode is intended only for managing applications that are specially
designed and packaged. This mode cannot be used to manage the HP-UX operating sys-
tem or patches to it. For a full explanation of nonprivileged SD, see the Software Distri-
butor Administration Guide , available at the
http://docs.hp.com web site.
See also the
admin_directory
and installed_software_catalog options.
verbose=1
Controls the verbosity of the output (stdout):
0 disables output to stdout. (Error and warning messages are always written to
stderr).
1 enables verbose messaging to stdout.
Session Files
Each invocation of
swask defines a task session. The invocation options, source information, software
selections, and target hosts are saved before the task actually commences. This lets you re-execute the
command even if the session ends before proper completion.
Each session is saved to the file
$HOME/.sw/sessions/swask.last
. This file is overwritten by
each invocation of
swask.
To save session information in a different location, execute
swask 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 session, specify the session file as the argument for the
-S session__file option.
When you re-execute a session file, the values in the session file take precedence over values in the sys-
tem defaults file. Likewise, any command line options or parameters that you specify when you invoke
swask take precedence over the values in the session file.
Software and Target Lists
You can use files containing software and target selections as input to the
swask command. See the -f
and -t options for more information.
Environment Variables
The environment variables that affect the
swask command are:
LANG Determines the language in which messages are displayed. If LANG is not specified or
is set to the empty string, a default value of C is used. See lang(5) for more informa-
tion.
NOTE: The language in which the SD agent and daemon log messages are displayed
is set by the system configuration variable script,
/etc/rc.config.d/LANG.For
example, /etc/rc.config.d/LANG, must be set to LANG=ja_JP.SJIS or
LANG=ja_JP.eucJP to make the agent and daemon log messages display in
Japanese.
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: March 2012