Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nice error



Oh, fudge!

Thanks for the clue.

On Wed, 18 Mar 2009, Michael van Elst wrote:

paul%whooppee.com@localhost (Paul Goyette) writes:

I just noticed the following:

        {199} nice -n 5 ls
        nice: Badly formed number.

        SYNOPSIS
             nice [-n increment] utility [argument ...]

You are mixing up the csh-builtin with /usr/bin/nice. From csh(1):

          nice
          nice +number
          nice command
          nice +number command
                  The first form sets the scheduling priority for this shell
                  to 4.  The second form sets the priority to the given
                  number.  The final two forms run command at priority 4 and
                  number respectively.  The greater the number, the less CPU
                  the process will get.  The super-user may specify negative
                  priority by using `nice -number ...'.  Command is always
                  executed in a sub-shell, and the restrictions placed on
                  commands in simple if statements apply.

--
--
                               Michael van Elst
Internet: mlelstv%serpens.de@localhost
                               "A potential Snark may lurk in every tree."

!DSPAM:49c0f547103281383438215!




-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index