Enjoy a randomly generated fortune:
$ fortune | cowsay _________________________________________ / As part of an ongoing effort to keep \ | you, the Fortune reader, abreast of the | | valuable information that daily crosses | | the USENET, Fortune presents: | | | | News articles that answer *your* | | questions, #1: | | | | Newsgroups: comp.sources.d | | | | Subject: how do I run C code received | | from sources | | | | Keywords: C sources | | | | Distribution: na | | | | I do not know how to run the C programs | | that are posted in the | | | | sources newsgroup. I save the files, | | edit them to remove the | | | | headers, and change the mode so that | | they are executable, but I | | | | cannot get them to run. (I have never | | written a C program before.) | | | | Must they be compiled? With what | | compiler? How do I do this? If | | | | I compile them, is an object code file | | generated or must I generate | | | | it explicitly with the > character? Is | | there something else that | | | \ must be done? / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
$output = shell_exec("/usr/games/fortune | /usr/games/cowsay"); echo $output;