Enjoy a randomly generated fortune:
$ fortune | cowsay ________________________________________ / quit When the quit statement is read, \ | the bc processor | | | | is terminated, regardless of where the | | quit state- | | | | ment is found. For example, "if (0 == | | 1) quit" | | | | will cause bc to terminate. | | | | -- seen in the manpage for "bc". Note | \ the "if" statement's logic / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
$output = shell_exec("/usr/games/fortune | /usr/games/cowsay"); echo $output;