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

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.