Greetings! *hug* The following is a little script to help spread happiness and cuddles on UNIX machines everywhere. Just follow the following instructions for hugs & snuggles any time you're logged on. Yay! * Note: I'm using the /bin/csh shell, so if you are using another shell and encounter problems, you may have to do a little tweaking. Also, the quotation marks in the following instructions are to deliniate what you are to type or name things; they should not actually be typed themselves. *ahem* Anyway, the instructions: 1) Save this message to a file by itself called "hugger" 2) Using an editor, delete the mail header and these instructions down to and including the =-= line, so the top line is #!/bin/sh 3) Resave the edited file 4) At the command line type "chmod +x hugger" 5) Type "hugger" Voila! Follow the instructions, and you're all set to go! Note though that when you are asked for the directory to place the program, do not specify the directory where you save this message, as they are both named the same, and this message is automatically deleted, so you may erase the program. Have fun! Luv ya! The Softouch Team =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Cut Here =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #!/bin/sh clear echo echo echo "Hiyo! Welcome to the Hugger(tm) installation script! Hugger is" echo "brought to you by Softouch Software and the letters h, u, and g. :-)" echo "To hold you over until Hugger is installed, here's a gratitutious" echo "*hug* to keep you going. :)" echo echo "This program is hug-ware; please give a hug to the person you obtain" echo "it from, and distribute it freely!" echo echo "To start, I need to know your name. Please enter it here:" read hugname echo echo "Hi $hugname!" echo "Now, a directory called Hug will be created off your root directory." echo "Is this okay? Please answer with y or n." read answr echo if [ $answr = y ] then echo "Great!" pth=Hug else echo "Okay, then please enter a path from your root directory for" echo "the program (i.e. scripts/hugger):" read pth echo echo "Thankyou!" fi echo echo "The Hugger program will be located in the following directory:" echo " "$HOME"/"$pth echo "Does this sound okay? Please answer with y or n." read answr echo if [ $answr = y ] then echo "Yay!" else echo "*sigh* Okay. I'm afraid you'll have to run the script again." echo "See ya soon! *hug*" echo exit 0 fi echo "Press return to begin!" read answr echo echo "Okey-doke, and away we go!" echo sleep 1 if [ -f hugger ] then mkdir $HOME/$pth else echo "Uh oh, trouble. :(" echo "This file is not properly named! Please rename this file" echo "to 'hugger' and rerun this installation. Thanks!" echo "i.e. Type the following on the command line:" echo " mv hugger" echo " hugger" echo echo "See ya again soon! *hugs* till ya return! Luv ya!" echo exit 0 fi echo "#!/bin/sh" > $HOME/$pth/hugger echo "clear" >> $HOME/$pth/hugger echo "echo" >> $HOME/$pth/hugger echo "echo Hi $hugname!" >> $HOME/$pth/hugger tail -92l hugger >> $HOME/$pth/hugger rm hugger cd $HOME/$pth chmod +x hugger clear echo echo "Hugger has been installed! Yay! :)" echo -n sleep 1 echo -n echo "To run the program, type 'hugger' while in the directory where it is" echo "located, or create an alias in your setup file such as the following:" echo " alias hugger '$HOME/$pth/hugger'" echo echo "Would you like to start right now? Please answer with y or n." read answr echo if [ $answr = n ] then echo "Okay. See ya later! *hug*" echo exit 0 else echo "Yay! I was hoping you would. Let's go!" sleep 1 $HOME/$pth/hugger fi exit 0 echo echo "Do you know what time it is? It is, at this very moment," date echo "I think it's high time for some cuddlin'! Yay! :-)" echo echo "Now, you have a choice. Would you prefer hugs, or cuddles?" echo "Or even perhaps something else? You can choose any on the" echo "following by selecting the appropriate letter:" echo "h - hugs p - spoddles" echo "c - cuddles m - smooches" echo "q - squeezes n - snuzzles" echo "s - snuggles a - custom affection!" echo echo "So what do you feel like today?" read affection case $affection in h|H) givetype=hug gives=hug ;; c|C) givetype=cuddle gives=cuddle ;; q|Q) givetype=squeeze gives=squeeze ;; s|S) givetype=snuggle gives=snuggle ;; p|P) givetype=spoddle gives=spoddle ;; m|M) givetype=smooche gives=smooch ;; n|N) givetype=snuzzle gives=snuzzle ;; a|A) echo echo "Okay, what are you in the mood for? Type it here in singular" echo "form, not plural (i.e. swuzzle):" read givetype gives=$givetype ;; *) echo echo "Okay, by default, you get hugs! :)" givetype=hug gives=hug ;; esac echo echo "Okay, "$givetype"s it is!" echo echo "To prevent loss of breath (since as we all know, breathing is good)," echo "you are limited to a maximum of 25 "$givetype"s at once." echo "How many "$givetype"s would you like?" read givenumber sleep 1 echo echo "Okay, here we go..." sleep 1 clear echo echo "Brace yourself!" sleep 1 clear echo echo "Here they come!" sleep 2 clear for giveno in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 do echo "Here is $gives #"$giveno": ***$gives!***" if [ $givenumber = $giveno ] then echo echo "There you go. Luv ya!" echo "*cuddle* bye-bye" echo exit 0 fi done