Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
nohup(1) OSS Shell and Utilities Reference Manual
3. To run more than one utility, use a shell script. For example, if you include the following
in a shell script:
comm -23 fi4 fi5 | comm -23 - fi6 | join -a1 - fi7 > comm.out
and rename it ncomm, you can run nohup for all of the utilities in ncomm by entering:
nohup sh ncomm
If you assign ncomm Execute permission, you can obtain the same results by issuing the
command:
nohup ncomm
To run this command in the background, enter:
nohup ncomm &
FILES
nohup.out Standard output and standard error file for nohup..
NOTES
The term utility, rather than the term command, is used to describe the argument to nohup because
shell compound commands, pipelines, special built-in programs, and so on, cannot be used
directly. In addition, utility includes user application programs and shell scripts, not just the stan-
dard utilities.
EXIT VALUES
The nohup command returns the following exit values:
126 The specified utility was found, but could not be invoked.
127 The error occurred in the nohup utility or the specified utility could not be found.
The exit status is otherwise that of the utility.
RELATED INFORMATION
Commands: sh(1).
Functions: sigaction(2).
6−90 Hewlett-Packard Company 527188-021