[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby telnet issue when target platform is SuSE9.2

Sea Zhang

12/14/2006 3:04:00 AM

Jia Zhang wrote:
> Hi,
> When I use Net/telnet module on target platform SuSE9.2, I got an error
> message like "Tset: Unknown terminal type network".
>
> I also tried to replace "login" fuction with "Waitfor" fuction, but it
> is still the case.
>
> Furthermore, I try to modify the options "Prompt" to another regular
> expression that matches the prompt of SuSE 9.2, but it still does not
> work.
>
> I used google to search for reasons about this issue.
> And I found maybe the default terminal type of SuSE9.2 should be
> modified to make my program work.
>
> Have anyone met the same problem? And could anyone give me a hand about
> how to configure SuSE9.2 terminal type?
>
> Additional info: my SuSE used bash shell as default shell. And the
> enviroment "TERM" is "xterm" and I examined the "/etc/termcap" and found
> nothing valuable.
>
> Thanks a lot!

Hi,
I solved this problem since I met the same issue as you. Below is my
code, you can refer to it. Any question, just mail to me:
sszhang_2003@hotmail.com

---------------------------------------------------------------------------
require 'net/telnet'

telnet = Net::Telnet.new('Host' => 'Your IP',
'Prompt' => /[ftpusr@suse46:~>]*\z/n)
#The prompt should be the real prompt while you entered your system

telnet.waitfor(/[Ll]ogin[: ]*\z/n) {|c| print c}
telnet.cmd("Your User") {|c| print c}
telnet.waitfor(/Password[: ]*\z/n) {|c| print c}
telnet.cmd("Your password") {|c| print c}
telnet.cmd("dumb") {|c| print c}
#This is must, because in SuSE, by default, the terminal type is "dumb"
#Then, send your command here
telnet.cmd('df -k'){|c| print c}
STDOUT.flush
#Here, wait for the prompt
telnet.waitfor(/[$%#>] \z/n) {|c| print c}
#Then, leave the system
telnet.cmd('exit') {|c| print c}
telnet.close
--------------------------------------------------------------------------

Enjoy Ruby!

--
Posted via http://www.ruby-....

9 Answers

Warren Penn

4/1/2013 11:33:00 PM

0

bigdog was thinking very hard :
> Thomas Sowell has long been one of my favorite columnists and he routinely
> carves up the libtards with simple, straight forward logic. That's why the
> libtards can't stand him. That and because he's black and conservative.

Thomas Sowell is part of the nigger problem. He's never worked a real
job in his life. Niggers love guns to kill whitey and steal his
woman.

Sowell simply regurgitates the same debunked supply side
rubbish that failed the Bush administration, failed the Reagan
administration, caused two recessions and the great depression.

Why should anyone care what a discredited partisan ivory tower
academic like Sowell thinks? What is he doing? Pining for a
job with the Cato Institute? Why does his sole opinion
outweigh the hundreds of economists who disagree with him.
His lack of objectivity and balance exposed him as a blatant
partisan hack years ago. All you can do is come up with the
opinions of disgraced right wing synchopants like Kudlow and
Sowell to support your uninspired and low brow naive idealistic
view of reality.


Klaus Schadenfreude

4/1/2013 11:52:00 PM

0

On Mon, 01 Apr 2013 17:30:02 -0600, deep wrote:

>On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
><jecorbett1951@yahoo.com> wrote:
>
>>Thomas Sowell has long been one of my favorite columnists and he routinely carves up the libtards with simple, straight forward logic. That's why the libtards can't stand him. That and because he's black and conservative.
>
>The term is Uncle Tom, or the term used back in the antebellum days
>was "house nigger". It was a black man who kowtowed and served the
>white massa solely for personal gain so he would get all the cushy
>jobs. He sells out his own people for his personal gain, so that
>makes him one of the most despicable people ever.

TRANSLATION: He's a black man who's not liberal. Dudu only likes
blacks if they think the correct way.

bigdog

4/2/2013

0

On Monday, April 1, 2013 7:30:02 PM UTC-4, deep wrote:
> On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
>
> <jecorbett1951@yahoo.com> wrote:

> >Thomas Sowell has long been one of my favorite columnists and he routinely carves up the libtards with simple, straight forward logic. That's why the libtards can't stand him. That and because he's black and conservative.
>
> The term is Uncle Tom, or the term used back in the antebellum days
> was "house nigger". It was a black man who kowtowed and served the
> white massa solely for personal gain so he would get all the cushy
> jobs. He sells out his own people for his personal gain, so that
> makes him one of the most despicable people ever.

White people get to decide if they want to be conservatives, liberals, moderates, libertarians, etc. but let a black guy come out as a conservative and you libtards go bananas. You don't want to let black people have the same choices that white people do. That makes you a bigot.

bigdog

4/2/2013 12:03:00 AM

0

On Monday, April 1, 2013 7:33:15 PM UTC-4, Warren Penn wrote:
> bigdog was thinking very hard :
>
> > Thomas Sowell has long been one of my favorite columnists and he routinely
> > carves up the libtards with simple, straight forward logic. That's why the
> > libtards can't stand him. That and because he's black and conservative.

>
> Thomas Sowell is part of the nigger problem. He's never worked a real
> job in his life. Niggers love guns to kill whitey and steal his
> woman.
>
Have your white robe and hood come back from the dry cleaners yet?

Klaus Schadenfreude

4/2/2013 12:18:00 AM

0

On Mon, 1 Apr 2013 17:00:12 -0700 (PDT), bigdog
<jecorbett1951@yahoo.com> wrote:

>On Monday, April 1, 2013 7:30:02 PM UTC-4, deep wrote:
>> On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
>>
>> <jecorbett1951@yahoo.com> wrote:
>
>> >Thomas Sowell has long been one of my favorite columnists and he routinely carves up the libtards with simple, straight forward logic. That's why the libtards can't stand him. That and because he's black and conservative.
>>
>> The term is Uncle Tom, or the term used back in the antebellum days
>> was "house nigger". It was a black man who kowtowed and served the
>> white massa solely for personal gain so he would get all the cushy
>> jobs. He sells out his own people for his personal gain, so that
>> makes him one of the most despicable people ever.
>
>White people get to decide if they want to be conservatives, liberals, moderates, libertarians, etc. but let a black guy come out as a conservative and you libtards go bananas. You don't want to let black people have the same choices that white people do. That makes you a bigot.

That's the cool think about Dudu, though. He's kind of a bellwether
for the left.

He's got all the shrieking righteousness, with none of the knowledge.
He's got all the bigotry and hate.
He's got all the violence, but it's tempered by cowardice and
impotence.




"Are you fucking kidding? Of course the nigger is lying."
-Deep Dudu

"House nigger isn't racist. It refers to the slaves who were willing
to kiss their master's white asses in order to get a job in the house
rather than out in the fields. It refers to ass kissing slaves. It
accurately points out a pattern of behavior. Has nothing to do with
race."
-Deep Dudu
House Negro (also House Nigger) is a pejorative term for a black
person, used to compare someone to a house slave of a slave owner from
the historic period of legal slavery in the US.
http://en.wikipedia.org/wiki/Ho...

Klaus Schadenfreude

4/2/2013 12:20:00 AM

0

On Mon, 1 Apr 2013 17:02:53 -0700 (PDT), bigdog
<jecorbett1951@yahoo.com> wrote:

>On Monday, April 1, 2013 7:33:15 PM UTC-4, Warren Penn wrote:
>> bigdog was thinking very hard :
>>
>> > Thomas Sowell has long been one of my favorite columnists and he routinely
>> > carves up the libtards with simple, straight forward logic. That's why the
>> > libtards can't stand him. That and because he's black and conservative.
>
>>
>> Thomas Sowell is part of the nigger problem. He's never worked a real
>> job in his life. Niggers love guns to kill whitey and steal his
>> woman.
>>
>Have your white robe and hood come back from the dry cleaners yet?

His wife/sister does that for him.

Scout

4/2/2013 2:00:00 AM

0



"deep" wrote in message news:uu5kl8pej5hadi736k64ov4q0ce5iar741@4ax.com...
> On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
> <jecorbett1951@yahoo.com> wrote:
>
>>Thomas Sowell has long been one of my favorite columnists and he routinely
>>carves up the libtards with simple, straight forward logic. That's why the
>>libtards can't stand him. That and because he's black and conservative.
>
> The term is Uncle Tom, or the term used back in the antebellum days
> was "house nigger". It was a black man who kowtowed and served the
> white massa solely for personal gain so he would get all the cushy
> jobs. He sells out his own people for his personal gain, so that
> makes him one of the most despicable people ever.

We acknowledge your admission, finally, that the term "house nigger" is
indeed a racist reference since by your own admission it applies only to
someone who is black.

I also suggest that Klaus add the above to further prove your prior claim
was a lie.

#10
"House nigger isn't racist. ... has nothing to do with race. "
Message-ID: <1oitb7p65q575be4k5rh98n18giuaoc0tf@4ax.com>

Further, how exactly would such a person be "selling out his own people"?

It's not like he's in any way responsible for their situation, nor can he do
anything about it, nor is such a person ratting them out to the owner.

How exactly is trying to improve one's position in a way that harms no one
else a despicable act?

After all, you claim to have gone to college in order to improve your
position. Are you a despicable person for doing so?

Did you "sell out your people" because you had a chance to improve your
personal situation?

Because what I get from you comments is that you consider self improvement
to be a despicable act.

Now, I would agree if they did so in a manner that actually "sold out their
people" but that isn't the case with either term.

Seems you have issues with people that work to rise above their 'station' in
life as you see it.

So who is the despicable person here? The person that seeks to advance, or
the person that sees attempting or accomplishing that advancement as
something to be offended about?


Scout

4/2/2013 2:00:00 AM

0



"Klaus Schadenfreude" <klausschadenfreude@yahoo.com> wrote in message
news:qb7kl8h896b56895109060ied82705cpdn@4ax.com...
> On Mon, 01 Apr 2013 17:30:02 -0600, deep wrote:
>
>>On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
>><jecorbett1951@yahoo.com> wrote:
>>
>>>Thomas Sowell has long been one of my favorite columnists and he
>>>routinely carves up the libtards with simple, straight forward logic.
>>>That's why the libtards can't stand him. That and because he's black and
>>>conservative.
>>
>>The term is Uncle Tom, or the term used back in the antebellum days
>>was "house nigger". It was a black man who kowtowed and served the
>>white massa solely for personal gain so he would get all the cushy
>>jobs. He sells out his own people for his personal gain, so that
>>makes him one of the most despicable people ever.
>
> TRANSLATION: He's a black man who's not liberal. Dudu only likes
> blacks if they think the correct way.

Yep that seems to be exactly what he's saying. If he doesn't fit the
'stereotypical' mold then Dudu finds him despicable.


Scout

4/2/2013 2:01:00 AM

0



"bigdog" <jecorbett1951@yahoo.com> wrote in message
news:76c5ffd0-56f6-48d6-a488-a8d4558babbd@googlegroups.com...
> On Monday, April 1, 2013 7:30:02 PM UTC-4, deep wrote:
>> On Mon, 1 Apr 2013 15:38:35 -0700 (PDT), bigdog
>>
>> <jecorbett1951@yahoo.com> wrote:
>
>> >Thomas Sowell has long been one of my favorite columnists and he
>> >routinely carves up the libtards with simple, straight forward logic.
>> >That's why the libtards can't stand him. That and because he's black and
>> >conservative.
>>
>> The term is Uncle Tom, or the term used back in the antebellum days
>> was "house nigger". It was a black man who kowtowed and served the
>> white massa solely for personal gain so he would get all the cushy
>> jobs. He sells out his own people for his personal gain, so that
>> makes him one of the most despicable people ever.
>
> White people get to decide if they want to be conservatives, liberals,
> moderates, libertarians, etc. but let a black guy come out as a
> conservative and you libtards go bananas. You don't want to let black
> people have the same choices that white people do. That makes you a bigot.

and a racist, but we already know that Dudu is a racist, and a bigot for
that matter.