Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

NOHUP(1)

NAME

nice, nohup − run a command at a different priority (sh only)

USAGE

nice [ −increment ] command [ arguments ]

nohup command [ arguments ]

DESCRIPTION

Nice can execute a specified command with a lower or higher CPU scheduling priority.  You may specify an increment argument in the range of -19 through +19 (the default is +10).  A specified increment larger than 19 will still be equivalent to 19.  To run commands with a higher than normal priority, use a negative increment (e.g., nice −−10).  To run them at a lower priority, use a positive increment.  The higher the number in positive terms, the lower the priority will be for running a command. 

Nohup executes the specified command, immune to hangup and terminate signals from the controlling terminal.  Priority is incremented by five. You should invoke nohup from the Shell with an ampersand (&), to prevent it from responding to interrupts by or stealing input from the next person who logs in on the same terminal.  Nohup also uses a syntax that is different from that of nice. 

CAUTIONS

Nice and nohup are particular to sh (1).  If you use csh (1), commands executed with an ampersand (&) are automatically immune to hangup signals while in the background.  A built-in command, nohup, provides immunity from termination, but it does not redirect output to nohup.out. 

Nice is built into csh (1) with a slightly different syntax than that described here.  The form nice +10 runs a command at a fairly low priority, while nice −10 gives a process quite a bit of processor time. 

FILES

nohup.out standard output and standard error file under nohup

DIAGNOSTICS

Nice returns the exit status of the subject command. 

RELATED INFORMATION

csh (1), renice (8). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026