Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Fri 06-20-2025 6:44AM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: what is rolla?
PostPosted: Fri 07-28-2006 11:56AM 
Offline
Sergeant
User avatar

Joined: Thu 09-04-2003 6:04AM
Posts: 31

Source: MechE Building
I got bored...and just in case I ever forget what Rolla is......

howto:
Code:
user@locahsot:~$ LOCATION="Rolla"
user@locahost:~$ ./whatis $LOCATION

thescript:
Code:
#!/bin/bash
#report status of 'location' argument

#CONSTANTS
Rolla="boring"

#VARIABLES
status=

if [ $1 == "Rolla" ] ; then
   status=$Rolla
else
   status="?"
fi

clear
echo $1 "is" $status

exit 0


enjoy...

_________________
WTF!


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Fri 07-28-2006 12:13PM 
Offline
Colonel

Joined: Sat 04-29-2006 8:47PM
Posts: 663

Source: Off Campus
it almost hurts to realize i understand that


Top
 Profile  
    
 Post subject:
PostPosted: Fri 07-28-2006 1:31PM 
Offline
Colonel
User avatar

Joined: Wed 02-20-2002 11:27PM
Posts: 867
Location: No one's really sure what became of Castorite after graduation

Source: Off Campus
Image


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Fri 07-28-2006 1:57PM 
Offline
Colonel
User avatar

Joined: Sun 09-12-2004 3:04PM
Posts: 572

Source: IT Staff
perl..

Howto:
Code:
# perl location.pl Rolla
boring


code:
Code:
#!/usr/bin/perl

#get arguments from command line
if (!$ARGV[0]) {
    die "No arguments given \n Usage: location [Location]\n";
   
}

my $location = $ARGV[0];
my $status;


#check for rolla
if ($location =~ /rolla/i) {
    $status = "boring";
}
else {
    $status = "fun!";
}

#print result
print $status."\n";



This is fun!


Top
 Profile  
    
 Post subject:
PostPosted: Fri 07-28-2006 2:04PM 
Offline
Major
User avatar

Joined: Mon 09-09-2002 5:37PM
Posts: 474

Source: VPN
I was just reading slashdot and I came across an interesting script..

http://www.ex-parrot.com/~pete/upside-down-ternet.html

I think your little scripts just got pwned. :)


Top
 Profile  
    
 Post subject:
PostPosted: Fri 07-28-2006 2:12PM 
Offline
Sergeant
User avatar

Joined: Thu 09-04-2003 6:04AM
Posts: 31

Source: MechE Building
I'll gladly give mad props to that. That'll serve them for stealing wireless.
But otherwise...that is a whole different level of boredom.

_________________
WTF!


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Fri 07-28-2006 4:59PM 
Offline
Colonel
User avatar

Joined: Mon 04-26-2004 2:11PM
Posts: 921
Location: IRC

Source: Off Campus
That is amazing, and saved to my PC. :D


In case I ever get wireless.

_________________
From green to red our days pass by, waiting for a sign to tell us why....
Are we dancing all alone?


Top
 Profile E-mail  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group