nohup - Run utility without hangups

Synopsis

nohup [ -C ccsid ] utility [ argument ... ]

Description

The nohup utility runs the specified utility with the specified arguments. When utility is invoked the SIGHUP signal is set to be ignored. You can use nohup to allow utility to run even after ending the Qshell session.

If standard output is a terminal, all output written by utility to its standard output is appended to the file nohup.out in the current directory. If the file cannot be created or opened for appending, all output is appended to the file $HOME/nohup.out. If neither file can be created or opened, utility is not run. The default permission for the nohup.out file allows only the owner to read and write the file.

If standard error is a terminal, all output written by utility to its standard error is redirected to the same descriptor as standard output.

Options

-C ccsid
The nohup.out file is created with the specified ccsid and all data written to the file is converted from the CCSID of the job to the specified ccsid. This option overrides the value of the QIBM_CCSID environment variable.

Operands

The utility is the name of a regular utility in the current environment.

Environment Variables

nohup is affected by the following environment variables:

QIBM_CCSID
The value of the environment variable is the CCSID used to create the nohup.out file. All data written to the file is converted from the CCSID of the job to the specified CCSID.

Exit Status

Related information