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 Goyette) writes:

I just noticed the following:

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

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

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

          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
                               "A potential Snark may lurk in every tree."


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

Home | Main Index | Thread Index | Old Index