Too much linux Options
bragr
#1 Posted: : Monday, May 24, 2010 12:09:43 AM
Rank: Administration



Groups: Server Admin, Administration, {pDs} Member, Registered User

Joined: 11/19/2008
Posts: 1,014
Points: 2,767
I just rattled off the following one-liner without thinking about it. I think its time for me to log off and go outside or something. Oh, its dark now, this might be a problem.
Code:
bragr@toasty:/var/www$ file=~/scripts/wang.sh; touch $file; echo 'echo "IP:"; read ip; rdesktop -u bragr -k en-us -g 90% -N -a 16 -z -x l $ip &' > $file; chmod u+x $file; sudo ln -s $file /usr/bin/wang

Super Penguin
#2 Posted: : Monday, May 24, 2010 3:44:02 PM
Rank: Fuckstick



Groups: {pDs} Member, Registered User

Joined: 12/14/2007
Posts: 1,195
Points: 2,775
Location: Near Seattle
I bet I would get that if I knew some programming...

Quote:
Razor: As hard as one might try no one will ever be able to pull one over on Super Penguin.

Backpack of Win
HolyJaw
#3 Posted: : Wednesday, May 26, 2010 4:29:27 PM
Rank: Fecal Impaction For the Win!

Groups: Ogamer, Registered User

Joined: 5/9/2006
Posts: 1,666
Points: 2,478
Location: La Habra, Orange, CA
bragr@toasty:/var/www$ file=~/scripts/wang.sh; touch $file; echo 'echo "IP:"; read ip; rdesktop -u bragr -k en-us -g 90% -N -a 16 -z -x l $ip &' > $file; chmod u+x $file; sudo ln -s $file /usr/bin/wang

So you have a shell script in your www folder called wang. First you prep it, then you start a statement "echo "IP:"... the rest I'm not too sure of. wtf is rdesktop? Then you reset permissions on the script and symlink it so your shell can call it.
silverwasp wrote:
Be careful what you wish for... I have 10 younger siblings and I am only 20....

Yes.... Same parents


WarMachine wrote:
meh...maybe if he hadn't been handed a burning house he could have done great things, but right now he has won the Prize for what? Damage Control?
Lead Salad
#4 Posted: : Wednesday, May 26, 2010 4:31:50 PM
Rank: Taco Technician



Groups: Registered User, {pDs} Member

Joined: 5/9/2006
Posts: 3,948
Points: 3,636
Location: Hi-Five City
Rikaelus
#5 Posted: : Wednesday, May 26, 2010 6:20:27 PM
Rank: Administration



Groups: {pDs} Member, Registered User, Server Admin, Administration

Joined: 3/27/2008
Posts: 1,793
Points: 3,380
Location: Arizona
Lead Salad wrote:


That has GOT to be the guy who deemed it cool to put a dozen commands on one line.

bragr
#6 Posted: : Wednesday, May 26, 2010 9:38:05 PM
Rank: Administration



Groups: Server Admin, Administration, {pDs} Member, Registered User

Joined: 11/19/2008
Posts: 1,014
Points: 2,767
HolyJaw wrote:
bragr@toasty:/var/www$ file=~/scripts/wang.sh; touch $file; echo 'echo "IP:"; read ip; rdesktop -u bragr -k en-us -g 90% -N -a 16 -z -x l $ip &' > $file; chmod u+x $file; sudo ln -s $file /usr/bin/wang

So you have a shell script in your www folder called wang. First you prep it, then you start a statement "echo "IP:"... the rest I'm not too sure of. wtf is rdesktop? Then you reset permissions on the script and symlink it so your shell can call it.


Close: I was in my www folder and I created a file called wang.sh in a folder scripts in my home directory (the ~), I preped it, wrote a simple script that prompts for an IP and creates a remote desktop connection to that IP (rdesktop), them I set permissions and created a symlink to it.
Super Penguin
#7 Posted: : Friday, May 28, 2010 11:21:10 PM
Rank: Fuckstick



Groups: {pDs} Member, Registered User

Joined: 12/14/2007
Posts: 1,195
Points: 2,775
Location: Near Seattle
bragr wrote:
Close: I was in my www folder and I created a file called wang.sh in a folder scripts in my home directory (the ~), I preped it, wrote a simple script that prompts for an IP and creates a remote desktop connection to that IP (rdesktop), them I set permissions and created a symlink to it.

I dunno what that means, so I'll just ask this: Should I be scared?

Quote:
Razor: As hard as one might try no one will ever be able to pull one over on Super Penguin.

Backpack of Win
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.