12.17. Usage of `sysctl`
Prev | Chapter 12. Dos and Don'ts | Next

## 12.17. Usage of `sysctl`

The usage of `sysctl` is discouraged except in targets. This is because the evaluation of any `makevar`s, such as used during `make index`, then has to run the command, further slowing down that process.

Usage of sysctl(8) should always be done with the `SYSCTL` variable, as it contains the fully qualified path and can be overridden, if one has such a special need.

Prev | Up | Next
12.16. Avoid Use of the `.error` Construct | Home | 12.18. Rerolling Distfiles

This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.