Bug 8047 - A bug in rc.local produces incorrect processors number on rh 6.1
A bug in rc.local produces incorrect processors number on rh 6.1
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 1999-12-29 09:55 EST by m.bizzarri
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-01-21 01:14:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description m.bizzarri 1999-12-29 09:55:49 EST
In the current version of initscripts, in order to get the number of
processors in the system and to print that on the login, the rc.local
makes something like

grep -cl <some regular expression> <somefile>

this should be fixed as

egrep -c <the same reg. ex. > <the same file>

The egrep is used to count the number of processor, with the -c option.

I can be more precise if necessary.
Comment 1 Bill Nottingham 2000-01-21 01:14:59 EST
This is fixed in the various errata initscripts.

Note You need to log in before you can comment on or make changes to this bug.