Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 8
Return true value (POSIX)
true
QNX Neutrino, Microsoft Windows
None.
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.
The shell has a builtin
true
command; see
ksh.
To make sure you use the executable, specify the full path.
0
false,
ksh
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 101
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/true.html on line 101