HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
swjob(1M) swjob(1M)
Options
When no options or operands are specified,
swjob lists the jobs that exist on the local host. These jobs
may be pending, active, in the background or completed. The
swjob command supports the following
options:
XToolKit Options
The
sd command supports a subset of the standard XToolkit options to control the
appearance of the system GUI. The supported options are:
-bg, -background ,
-fg, -foreground , -display
, -name, -xrm, and -synchronous . See the
X(1) man page by typing
man X
for a definition of these options.
-i Runs the command in interactive mode (invokes the GUI.) (Using this option is an
alias for the sd command.) See the Interactive Operation
and Remote
Operation
headings above for details.
-R Applies to target lists as a shorthand for
@ *::*.
-u Causes swjob to remove the specified job(s).
-v Causes swjob to list all available attributes, one per line. The option applies only to
the default list.
-a attribute Each job has its own set of attributes. These attributes include such things as job
title, schedule date, or results. The -a option selects a specific attribute to display.
You can specify multiple -a options to display multiple attributes. See also sd(4) for
details on these attributes. This option applies only to the default list.
The logfiles summarizing a job or detailing target actions can be displayed using
-a
log
,if -a log is specified and no other attribute is specified (i.e. no other attribute
may be specified).
-C session_file
Save the current options and operands to session_file. You can enter a relative or
absolute path with the file name. The default directory for session files is
$HOME/.sw/sessions/
. You can recall a session file with the -S option.
-f jobid_file Read the list of jobids from jobid_file instead of (or in addition to) the command line.
-t target_file Read the list of target_selections from target_file instead of (or in addition to) the com-
mand line.
-x option=value
Set the session option to value and override the default value (or a value in an alter-
nate option_file specified with the -X option). Multiple -x options can be specified.
-S session_file
Execute swjob based on the options and operands saved from a previous session, as
defined in session_file. You can save session information to a file with the
-C option.
-X option_file Read the session options and behaviors from option_file.
Operands
The swjob command supports two types of operands: jobid followed by target selections. These operands
are separated by the "@" (at) character. This syntax implies that the command operates on "jobid at tar-
gets".
• jobid The swjob command supports the following syntax for each job id:
jobid
• target selections The swjob command supports the following syntax for each target selection:
[host][:][directory]
EXTERNAL INFLUENCES
Default Options
In addition to the standard options, several SD behaviors and policy options can be changed by editing the
default values found in:
/var/adm/sw/defaults the system-wide default values.
Section 1M−−940 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005