nohup
Execute commands immune to SIGHUP, enabling long-running background tasks to persist after terminal exit. Captures output to a file.
Instructions
Run a command immune to SIGHUP (hangup signals), ideal for long-running background tasks. Executes the given command and captures stdout/stderr. Requires --allow_nohup confirmation for safety. Use to run tasks that should survive terminal closure. Not for CPU priority adjustment — use 'nice'. Not for time-bounded execution — use 'timeout'. See also 'nice', 'timeout'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_background | No | Allow starting a real background process. | |
| allow_overwrite | No | Allow replacing an existing output file. | |
| append | No | Append to the output file. | |
| command_args | No | Command and arguments to run. | |
| dry_run | No | Report without starting a process. | |
| output | No | Output file for stdout/stderr. | nohup.out |
| parents | No | Create missing output parent directories. |