[BACK]Return to nice.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / nice

Annotation of src/usr.bin/nice/nice.1, Revision 1.2

1.2     ! deraadt     1: .\"    $OpenBSD: nice.1,v 1.6 1995/08/31 23:30:57 jtc Exp $
1.1       deraadt     2: .\"    $NetBSD: nice.1,v 1.6 1995/08/31 23:30:57 jtc Exp $
                      3: .\"
                      4: .\" Copyright (c) 1980, 1990, 1993
                      5: .\"    The Regents of the University of California.  All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"    This product includes software developed by the University of
                     18: .\"    California, Berkeley and its contributors.
                     19: .\" 4. Neither the name of the University nor the names of its contributors
                     20: .\"    may be used to endorse or promote products derived from this software
                     21: .\"    without specific prior written permission.
                     22: .\"
                     23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     26: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     33: .\" SUCH DAMAGE.
                     34: .\"
                     35: .\"    @(#)nice.1      8.1 (Berkeley) 6/6/93
                     36: .\"
                     37: .Dd June 6, 1993
                     38: .Dt NICE 1
                     39: .Os
                     40: .Sh NAME
                     41: .Nm nice
                     42: .Nd execute a utility with an altered scheduling priority
                     43: .Sh SYNOPSIS
                     44: .Nm nice
                     45: .Op Fl n Ar increment
                     46: .Ar utility
                     47: .Op Ar argument ...
                     48: .Sh DESCRIPTION
                     49: .Nm Nice
                     50: runs
                     51: .Ar utility
                     52: at an altered scheduling priority.
                     53: If an
                     54: .Ar increment
                     55: is given, it is used; otherwise
                     56: an increment of 10 is assumed.
                     57: The super-user can run utilities with priorities higher than normal by using
                     58: a negative
                     59: .Ar increment .
                     60: The priority can be adjusted over a
                     61: range of -20 (the highest) to 20 (the lowest).
                     62: .Pp
                     63: Available options:
                     64: .Bl -tag -width indent
                     65: .It Fl n Ar increment
                     66: A positive or negative decimal integer used to modify the system scheduling
                     67: priority of
                     68: .Ar utility.
                     69: .El
                     70: .Sh DIAGNOSTICS
                     71: The
                     72: .Nm nice
                     73: utility shall exit with one of the following values:
                     74: .Bl -tag -width indent
                     75: .It 1-125
                     76: An error occurred in the
                     77: .Nm nice
                     78: utility.
                     79: .It 126
                     80: The
                     81: .Ar utility
                     82: was found but could not be invoked.
                     83: .It 127
                     84: The
                     85: .Ar utility
                     86: could not be found.
                     87: .El
                     88: .Pp
                     89: Otherwise, the exit status of
                     90: .Nm nice
                     91: shall be that of
                     92: .Ar utility .
                     93: .Sh COMPATIBILITY
                     94: The historic
                     95: .Fl Ns Ar increment
                     96: option has been deprecated but is still supported in this implementation.
                     97: .Sh SEE ALSO
                     98: .Xr csh 1 ,
                     99: .Xr renice 8
                    100: .Sh STANDARDS
                    101: The
                    102: .Nm nice
                    103: utility conforms to
                    104: .St -p1003.2-92 .
                    105: .Sh HISTORY
                    106: A
                    107: .Nm nice
                    108: utility appeared in
                    109: .At v6 .
                    110: .Sh BUGS
                    111: .Nm Nice
                    112: is built into
                    113: .Xr csh  1
                    114: with a slightly different syntax than described here.  The form
                    115: .Ql nice +10
                    116: nices to positive nice, and
                    117: .Ql nice \-10
                    118: can be used
                    119: by the super-user to give a process more of the processor.