Banned because the fortune command isn't complete unless it's piped to cowsay.
Printable View
Banned because the fortune command isn't complete unless it's piped to cowsay.
banned because you don't need pipes to do that
Code:#!/usr/bin/php
<?php
$cows=scandir("/usr/share/cowsay/cows/");
$type=array("say","think");
echo shell_exec('/usr/games/cow'.$type[rand(0,1)].' -f '.$cows[rand(2,count($cows)-1)].' "`/usr/games/fortune`"');
?>
Banned for unnecessarily complicating such a simple thing. :p
Banned because you don't need PHP to do that!
Code:#!/bin/bash
fortune | cowsay
Banned for using pipes
Code:#!/bin/bash
cowsay `fortune`
banned for not picking a random cow file or and randomly picking cowsay/cowthink
banned because no one has uploaded a picture of a cow ;)
banned for being a not-lad. It's better to be a lad.
banned cause i gave up on getting someone to post a picture of a cow
http://2.bp.blogspot.com/-CXFfl9luHP.../s1600/cow.jpg