UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
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 26 27
28 29 30 31
Our Sponsors


Latest Postings
My friend NEEDS your HELP!
by Gizmo
11/26/08 12:21 AM
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Topic Options
Rate This Topic
#16767 - 12/03/02 12:15 AM Useless Bash Script
Asteos Offline
Member

Registered: 03/04/02
Posts: 217
Loc: Nadia
Okay So I Was Incredibly Bored Tonight And So I Thought I'd Just Post An Absolutely Useless Bash Program I Wrote. I Wasn't Sure Whether To Post It In "Off-Topic" "Programming" Or "*nix Security." Being as Though This Section Of The BBS Rarely Gets Traffic, I Thought I'd Post It Here.

#!/bin/bash
declare Name="1"
while [ "$Name" -eq "1" ]
do
clear
echo ""
echo "What's Mah Name, Bitch!?"
echo ""
echo "1. Fucked If I Know"
echo "2. Asteos, The Master Of The Linux Dojo"
echo ""
echo "Enter You Selection: "
read Name
done
echo "Damn StraighT!!"

So If You Don't Type The Second Selection Nothing Is Supposed To Happen So You're Basically Forced To Call Me The Master Or You Don't go Anywhere. Well, Almost Anywhere. If You Type Any Number Other Than One It Will Echo "Damn StraighT!!" Pretty funny, I Thought. I'm Not The Linux-Dojo-Master Just Yet, Or I Would Have Made This Do Much More, But Just In Good fun. Oh Well
_________________________
=~ s/boredom/ studies/g

Top
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#16768 - 12/03/02 01:26 AM Re: Useless Bash Script
Infinite Global Moderator Offline
Living The Dream

Registered: 03/09/02
Posts: 1039
Loc: Canada eh
Hehe. You started this topic so...

You should change the operator in the while statment to force the person to say are you are the shit. eg:

#!/bin/bash
declare Name="1"
while [ "$Name" != "2" ]
do
clear
echo ""
echo "What's Mah Name, Bitch!?"
echo ""
echo "1. Fucked If I Know"
echo "2. Asteos, The Master Of The Linux Dojo"
echo ""
echo "Enter You Selection: "
read Name
done
echo "Damn StraighT!!"

Top
#16769 - 12/03/02 10:27 PM Re: Useless Bash Script
Asteos Offline
Member

Registered: 03/04/02
Posts: 217
Loc: Nadia
Hell Yeh! It Worked. I Don't Get It Though, You Changed The Value of $Name to 1, but Then Within The While Loop You Just Added A "!="2"" What does "!" Stand for?
_________________________
=~ s/boredom/ studies/g

Top
#16770 - 12/04/02 07:14 PM Re: Useless Bash Script
spectre Offline
Junior Member

Registered: 03/05/02
Posts: 56
Loc: 192.168.128.80
!= means Does not equal. So basically, while name does not equal 2, keep looping, which forces the user to press 2.
_________________________
http://www.javaspot.net

Top
#16771 - 12/04/02 07:28 PM Re: Useless Bash Script
hKzKnight Offline
Member

Registered: 03/12/02
Posts: 626
Loc: LAN
LOL very intresting, does show a person who is bored. Still trying to figure if this should stay in *nix or be in programming, bah i'll keep it.
_________________________
-hKzKnight
"The ghost... Was never there and you'll never see me"

Top



Moderator:  Infinite 
Featured Member
Registered: 03/03/02
Posts: 23
Forum Stats
6889 Members
44 Forums
11030 Topics
45809 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6958
UGN Security 4080
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
lucky vin, prEttyNDistress, AndrewKlilly, border, f4k3m3
6889 Registered Users
Who's Online
0 registered (), 6 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 26, 2008
by Gizmo
11/28/08 03:39 AM
Happy Holidays!
by Gizmo
11/27/08 09:09 AM
New Mailing
by Gizmo
11/24/08 01:30 PM
A special update...
by Gizmo
11/24/08 01:10 PM
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!