1*62149Sbostic.\" Copyright (c) 1980, 1990, 1993 2*62149Sbostic.\" The Regents of the University of California. All rights reserved. 319230Smckusick.\" 419230Smckusick.\" 550532Scael.\" %sccs.include.redist.roff% 643083Scael.\" 7*62149Sbostic.\" @(#)nice.1 8.1 (Berkeley) 06/06/93 850532Scael.\" 943083Scael.Dd 1043083Scael.Dt NICE 1 1143083Scael.Os BSD 4 1243083Scael.Sh NAME 1343083Scael.Nm nice 1443083Scael.Nd execute a command at a low scheduling priority 1543083Scael.Sh SYNOPSIS 1643083Scael.Nm nice 1750532Scael.Op Fl Ns Ar number 1843083Scael.Ar command 1943083Scael.Op Ar arguments 2043083Scael.Sh DESCRIPTION 2143083Scael.Nm Nice 2243083Scaelruns 2343083Scael.Ar command 2443083Scaelat a low priority. 2543083Scael(Think of low and slow). 2643083ScaelIf 2750532Scael.Fl Ns Ar number 2843083Scaelis specified, and if it is greater than or equal 2943083Scaelto 10 (the default), 3043083Scael.Nm nice 3143083Scaelwill execute 3243083Scael.Ar command 3343083Scaelat that priority. 3443083ScaelThe upper bound, or lowest priority that 3543083Scael.Nm nice 3643083Scaelwill run a command is 20. 3743083ScaelThe lower bounds or 3843083Scaelhigher priorities (integers less than 10) 3943083Scaelcan only be requested by the super-user. 4043083ScaelNegative numbers are expressed as 4150532Scael.Fl - Ns Ar number . 4243083Scael.Pp 4343083ScaelThe returned exit status is the exit value from the 4443083Scaelcommand executed by 4543083Scael.Nm nice . 4643083Scael.Sh SEE ALSO 4743083Scael.Xr csh 1 , 4843083Scael.Xr renice 8 4943083Scael.Sh HISTORY 5050532ScaelA 5150532Scael.Nm nice 5250532Scaelcommand appeared in 5350532Scael.At v6 . 5443083Scael.Sh BUGS 5543083Scael.Nm Nice 5638088Sbosticis particular to 5743083Scael.Xr sh 1 . 5819230SmckusickIf you use 5943083Scael.Xr csh 1 , 6019230Smckusickthen commands executed with ``&'' are automatically immune to hangup 6119230Smckusicksignals while in the background. 6243083Scael.Pp 6343083Scael.Nm Nice 6419230Smckusickis built into 6543083Scael.Xr csh 1 6619230Smckusickwith a slightly different syntax than described here. The form 6750532Scael.Ql nice +10 6850532Scaelnices to positive nice, and 6950532Scael.Ql nice \-10 7050532Scaelcan be used 7119230Smckusickby the super-user to give a process more of the processor. 72