Banned because the fortune command isn't complete unless it's piped to cowsay.
Banned because the fortune command isn't complete unless it's piped to cowsay.
Full time open source software developer. Projects:
Wakame-vdc: Virtual data center. Community: Wakame Users Group
OpenVNet: Virtual networking using OpenFlow
Sinatra-browse: Parameter declaration framework and browsable API for ruby Sinatra.
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`"'); ?>
Last edited by pqwoerituytrueiwoq; October 5th, 2012 at 06:40 AM.
Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
Putting your Networked Printer's scanner software to shame PHP Scanner Server
I frequently edit my post when I have the last post
Banned for unnecessarily complicating such a simple thing.
Full time open source software developer. Projects:
Wakame-vdc: Virtual data center. Community: Wakame Users Group
OpenVNet: Virtual networking using OpenFlow
Sinatra-browse: Parameter declaration framework and browsable API for ruby Sinatra.
Banned because you don't need PHP to do that!
Code:#!/bin/bash fortune | cowsay
AMD Athlon II x4 640 - ASUS M4A88T-V EVO/USB3 - 12GB RAM - XFX ATI Radeon HD 5670 1GB w/21.5" Monitor - Assorted HDDs - Mushkin Enhanced Chronos 120Gb SSD - [ArchLinux - Windows 7 - Mac OS X 10.6.8]
If all else fails, read the instructions.
Banned for using pipes
Code:#!/bin/bash cowsay `fortune`
Last edited by Metallion; October 5th, 2012 at 11:11 AM.
Full time open source software developer. Projects:
Wakame-vdc: Virtual data center. Community: Wakame Users Group
OpenVNet: Virtual networking using OpenFlow
Sinatra-browse: Parameter declaration framework and browsable API for ruby Sinatra.
banned for not picking a random cow file or and randomly picking cowsay/cowthink
Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
Putting your Networked Printer's scanner software to shame PHP Scanner Server
I frequently edit my post when I have the last post
banned because no one has uploaded a picture of a cow
banned for being a not-lad. It's better to be a lad.
If you have freedom but you don't value it, you're likely to lose it. -Richard Stallman
banned cause i gave up on getting someone to post a picture of a cow
http://2.bp.blogspot.com/-CXFfl9luHP.../s1600/cow.jpg
Bookmarks