{"id":40,"date":"2008-11-19T22:51:43","date_gmt":"2008-11-19T11:51:43","guid":{"rendered":"http:\/\/www.madox.net\/blog\/?p=40"},"modified":"2008-11-19T22:54:37","modified_gmt":"2008-11-19T11:54:37","slug":"cowsay-madoxsay-fun-or-oh-so-wrong-things-in-ubuntu","status":"publish","type":"post","link":"http:\/\/www.madox.net\/blog\/2008\/11\/19\/cowsay-madoxsay-fun-or-oh-so-wrong-things-in-ubuntu\/","title":{"rendered":"Cowsay?  Madoxsay!  Fun (or oh so wrong) things in Ubuntu&#8230;"},"content":{"rendered":"<p>It started with a colleague walking by my desk today and asking me if I had &#8216;cowsays&#8217; installed on my machine, never having heard of it before he dared me to just try run it.\u00a0 A short command not found and a subsequent apt-get install later&#8230; I didn&#8217;t know whether to burst out laughing or slap my forehead.<\/p>\n<blockquote>\n<pre> ________________________________________\r\n\/ This is a very very useful and         \\\r\n| productive program available in Ubuntu |\r\n\\ and other Debian distributions...      \/\r\n ----------------------------------------\r\n        \\   ^__^\r\n         \\  (oo)\\_______\r\n            (__)\\       )\\\/\\\r\n                ||----w |\r\n                ||     ||<\/pre>\n<\/blockquote>\n<p><!--more--><\/p>\n<p>I actually found a legitimate use for it!\u00a0 It just happened that I was supposed to get a thermal printer to work over a RS232 RS485 converter over a Ethernet link all powered from 24V powered by an isolated 110V-24V converter which was fed by 240V&#8230;. Yup&#8230; Cowsay was the perfect print test material!<\/p>\n<p>How do you get it?<\/p>\n<blockquote><p>sudo apt-get install cowsay<\/p><\/blockquote>\n<p>Usage is pretty self explanatory and the man page, but one nifty feature is that you can replace the cow with a library of animals using the &#8216;<em>-f<\/em>&#8216; option.\u00a0 The list of animals is stored in (for <a href=\"http:\/\/www.ubuntu.com\/\" target=\"_blank\">Ubuntu<\/a> anyway) in <em>\/usr\/share\/cowsay\/cows\/<\/em><\/p>\n<p>List of animals&#8230;<\/p>\n<blockquote>\n<pre>madox@madox-laptop:~$ ls \/usr\/share\/cowsay\/cows\/\r\napt.cow             elephant-in-snake.cow  milk.cow             supermilker.cow\r\nbeavis.zen.cow      eyes.cow               moofasa.cow          surgery.cow\r\nbong.cow            flaming-sheep.cow      moose.cow            telebears.cow\r\nbud-frogs.cow       ghostbusters.cow       mutilated.cow        three-eyes.cow\r\nbunny.cow           head-in.cow            ren.cow              turkey.cow\r\ncheese.cow          hellokitty.cow         satanic.cow          turtle.cow\r\ncower.cow           kiss.cow               sheep.cow            tux.cow\r\ndaemon.cow          kitty.cow              skeleton.cow         udder.cow\r\ndefault.cow         koala.cow              small.cow            vader.cow\r\ndragon-and-cow.cow  kosh.cow               sodomized.cow        vader-koala.cow\r\ndragon.cow          luke-koala.cow         sodomized-sheep.cow  www.cow\r\nduck.cow            mech-and-cow.cow       stegosaurus.cow\r\nelephant.cow        meow.cow               stimpy.cow<\/pre>\n<\/blockquote>\n<p>Now you simply use it by typing the following command<\/p>\n<blockquote><p>cowsay -f animal whatyouwanttheanimaltosayhere<\/p><\/blockquote>\n<p>The perfect case of a <strong>bad<\/strong> example&#8230;<\/p>\n<blockquote>\n<pre>madox@madox-laptop:~$ cowsay -f sodomized WTF? This is sooo wrong...\r\n ____________________________\r\n&lt; WTF? This is sooo wrong... &gt;\r\n ----------------------------\r\n      \\                _\r\n       \\              (_)\r\n        \\   ^__^       \/ \\\r\n         \\  (oo)\\_____\/_\\ \\\r\n            (__)\\       ) \/\r\n                ||----w ((\r\n                ||     ||&gt;&gt;<\/pre>\n<\/blockquote>\n<p>Ok&#8230;maybe not so fun&#8230;but other more sane selections exist!\u00a0 Tweaks on the animal eyes and more if you explore the man pages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It started with a colleague walking by my desk today and asking me if I had &#8216;cowsays&#8217; installed on my machine, never having heard of it before he dared me to just try run it.\u00a0 A short command not found and a subsequent apt-get install later&#8230; I didn&#8217;t know whether to burst out laughing or &hellip; <a href=\"http:\/\/www.madox.net\/blog\/2008\/11\/19\/cowsay-madoxsay-fun-or-oh-so-wrong-things-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cowsay?  Madoxsay!  Fun (or oh so wrong) things in Ubuntu&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[19,18,14],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-software","tag-cows","tag-fun-software","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":4,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":43,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions\/43"}],"wp:attachment":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}