Home
July 2009   01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
megreen

Make me a sandwich...

Posted on 2008.09.03 at 09:34
Only my geek friends will appreciate this, of course.



#!/bin/bash

# make me a sandwich

name=$(whoami)

if [ $name != "root" ]; then

echo -e "Bah...go make you're own sandwich...\nWhat do you think I am, you're slave or something?"

else

echo -e "At your service, O Great One.\nWhat kind of sandwich do you desire?"
read type
echo "Cheese, sir?"
read cheese
echo "What kind of bread, Majesty?"
read bread
echo "Any condiments, Benevolent Master?"
read condiments
echo "Something to drink, as well, Your Magnificence?"
read drink
echo -e "Very well, Majesty...one $type sandwith with $cheese on $bread with $condiments, and a drink of $drink coming right away, Great One!"

sleep 5

echo "..."

sleep 5

echo "..."

echo -e "Here is your sandwich, o Great Benevolent one.\nThank you so much for allowing me to serve you.\nI bow before your magnificent radiance!"

fi

exit

Comments:


Dark Wolf
[info]darkwolf69 at 2008-09-03 13:56 (UTC) (Link)
tonytraductor
[info]tonytraductor at 2008-09-03 17:48 (UTC) (Link)
Yeah, that was my inspiration.
Except I'm on PCLOS so used su instead of sudo.
Volim što sam lezbejka zato što su žene lepe
[info]pthalogreen at 2008-09-03 16:36 (UTC) (Link)
haha. that's great. :)
Kevi
[info]justkevi at 2008-09-04 06:57 (UTC) (Link)
su -c chmod 4777 sandwich
tonytraductor
[info]tonytraductor at 2008-09-04 12:33 (UTC) (Link)
Right on!
Matthew Caron
[info]mattcaron at 2008-09-05 20:17 (UTC) (Link)
Someone was bored.

This is what I do when I'm bored. (Is perl)
Previous Entry  Next Entry