QNX Developer Support
|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Return true value (POSIX)
The true utility does nothing but exit immediately with a zero exit code.
The true utility is typically used in shell scripts. One common application is to create an infinite loop, as in:
while true do myprogram sleep 300 done
which runs myprogram every five minutes (300 seconds) until the shell script is interrupted.