Ruby Bot

Hello,

did anybody manage to use rbot on Win32 platforms?

···


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

not under windows but it runs fine under linux… i’ve even made a
couple of plugins (which i’ve subsequently lost :slight_smile: )

what sort of errors u getting? i’m gonna be installing ruby on my works
machine this week and i was gonna give rbot a whirl

regards
charles

···

On Sun, 2002-08-18 at 23:04, Giuseppe Bilotta wrote:

Hello,

did anybody manage to use rbot on Win32 platforms?


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Well, with rbot 0.9.4 there was an error about SIGHUP not being a
recognized command (commenting the trap line solved it), but it
wouldn’t connect.

Then it looked for /etc/hosts (this is probably a problem with the
HTTP packages?)

And even when creating this file it failed by saying that the
required address was not valid for its context.

I’ve not tried 0.9.6 now because I need to put upt the bdb Ruby
module.

The Resident Drunk wrote:

···

not under windows but it runs fine under linux… i’ve even made a
couple of plugins (which i’ve subsequently lost :slight_smile: )

what sort of errors u getting? i’m gonna be installing ruby on my works
machine this week and i was gonna give rbot a whirl

regards
charles
On Sun, 2002-08-18 at 23:04, Giuseppe Bilotta wrote:

Hello,

did anybody manage to use rbot on Win32 platforms?


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Well, with rbot 0.9.4 there was an error about SIGHUP not being a
recognized command (commenting the trap line solved it), but it
wouldn’t connect.

Well SIGHUP isn’t a commmand par se… it’s a unix termination signal
that u can send to the program to tell it to terminate.

Then it looked for /etc/hosts (this is probably a problem with the
HTTP packages?)
again this is unix specific… in windows it’s in c:\windows\lmhosts
iirc. /etc/hosts hold the ip ↔ name solution lijnes for machines that
are on your local network usually as I have indicated below.

192.168.0.1 firewall.summerfield-technology.co.uk fw
192.168.0.2 dev.summerfield-technology.co.uk dev
etc
etc

And even when creating this file it failed by saying that the
required address was not valid for its context.

What i’m going to do is if i get time tonight i’m going to d/l ruby for
windows and rbot (again :slight_smile: ) and i’ll have a go… I’ll keep you all
posted as to how i get on.

regards
Charles

···

On Mon, 2002-08-19 at 11:08, Giuseppe Bilotta wrote:

HUP is actually a hangup, generally used to reload a process rather tan
terminate (TERM) it.

rick

···

The Resident Drunk (charlesb@summerfield-technology.co.uk) wrote:

On Mon, 2002-08-19 at 11:08, Giuseppe Bilotta wrote:

Well, with rbot 0.9.4 there was an error about SIGHUP not being a
recognized command (commenting the trap line solved it), but it
wouldn’t connect.

Well SIGHUP isn’t a commmand par se… it’s a unix termination signal
that u can send to the program to tell it to terminate.

The Resident Drunk wrote:

Well, with rbot 0.9.4 there was an error about SIGHUP not being a
recognized command (commenting the trap line solved it), but it
wouldn’t connect.

Well SIGHUP isn’t a commmand par se… it’s a unix termination signal
that u can send to the program to tell it to terminate.

Yes, sorry.

Then it looked for /etc/hosts (this is probably a problem with the
HTTP packages?)
again this is unix specific… in windows it’s in c:\windows\lmhosts
iirc. /etc/hosts hold the ip ↔ name solution lijnes for machines that
are on your local network usually as I have indicated below.

192.168.0.1 firewall.summerfield-technology.co.uk fw
192.168.0.2 dev.summerfield-technology.co.uk dev
etc
etc

Can I just copy the windows one to where linux expects it?

And even when creating this file it failed by saying that the
required address was not valid for its context.

What i’m going to do is if i get time tonight i’m going to d/l ruby for
windows and rbot (again :slight_smile: ) and i’ll have a go… I’ll keep you all
posted as to how i get on.

Thank you very much.

···

On Mon, 2002-08-19 at 11:08, Giuseppe Bilotta wrote:


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

No but if ythe program isn’t written to handle the SIGHUP signal, then
the default handler will terminate the process. but i agree normally
it’s used to get the program to reload it’s config or whatever.

regards
charles

···

On Mon, 2002-08-19 at 22:47, Rick Rezinas wrote:

Well SIGHUP isn’t a commmand par se… it’s a unix termination signal
that u can send to the program to tell it to terminate.

HUP is actually a hangup, generally used to reload a process rather tan
terminate (TERM) it.

rick

again this is unix specific… in windows it’s in c:\windows\lmhosts
iirc. /etc/hosts hold the ip ↔ name solution lijnes for machines that
are on your local network usually as I have indicated below.

192.168.0.1 firewall.summerfield-technology.co.uk fw
192.168.0.2 dev.summerfield-technology.co.uk dev
etc
etc

Can I just copy the windows one to where linux expects it?
I would presume so the two files are exactly the same iirc

or you could just modify the code to look in \windows if it’s running
under win etc but i don’t know what else u would need to change

And even when creating this file it failed by saying that the
required address was not valid for its context.

What i’m going to do is if i get time tonight i’m going to d/l ruby for
windows and rbot (again :slight_smile: ) and i’ll have a go… I’ll keep you all
posted as to how i get on.

Thank you very much.
np, i haven’t had time to do it yet :wink: but it’s on my list of things to
do. I’m trying to rewrite a yahoo chat client atm… and yes it’s in
ruby :slight_smile:

regards
charles

···

On Tue, 2002-08-20 at 01:09, Giuseppe Bilotta wrote:

The Resident Drunk wrote:

···

On Tue, 2002-08-20 at 01:09, Giuseppe Bilotta wrote:

again this is unix specific… in windows it’s in c:\windows\lmhosts
iirc. /etc/hosts hold the ip ↔ name solution lijnes for machines that
are on your local network usually as I have indicated below.

192.168.0.1 firewall.summerfield-technology.co.uk fw
192.168.0.2 dev.summerfield-technology.co.uk dev
etc
etc

Can I just copy the windows one to where linux expects it?
I would presume so the two files are exactly the same iirc

or you could just modify the code to look in \windows if it’s running
under win etc but i don’t know what else u would need to change

Still aborts saying that the requested address was not valid for the
context.


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Giuseppe Bilotta wrote:

Still aborts saying that the requested address was not valid for the
context.

I upgraded to 0.9.6 but still the same error. I don’t even understand
who is giving the error …

···


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Sounds like the socket libraries. Wanna paste the entire text of the
error?

Tom.

···

Giuseppe Bilotta wrote:

Still aborts saying that the requested address was not valid for the
context.

I upgraded to 0.9.6 but still the same error. I don’t even understand
who is giving the error …


.^. .-------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | Open Source/UNIX consultant | tom@linuxbrit.co.uk |
^^-^^ `-------------------------------------------------------’

I know the title might sound a bit OT, but the point is I’m going to do it
in Ruby… so…

I’m wondering how I would - start a SWF file from Ruby but not let the SWF
file have a normal window border… no title bar, no menu options - not
even a close button in the upper right corner…

When you double-click on a SWF it opens up in MM’s SWF Player - with a
normal windows border.

I don’t want the border… am I being too picky - or can Ruby really handle
this?

I would love any help or suggestions you guys can give me about this…

-Rich

Tom Gilbert wrote:

Giuseppe Bilotta wrote:

Still aborts saying that the requested address was not valid for the
context.

I upgraded to 0.9.6 but still the same error. I don’t even understand
who is giving the error …

Sounds like the socket libraries. Wanna paste the entire text of the
error?

C:\TOOLS\net\rbot-0.9.6>rbot
…/rbot/ircbot.rb:240:in connect': failed to connect to IRC server at irc.azzurra.net 6667: The requested address is not valid in its context. - "connect(2)" (RuntimeError) from ./rbot/ircbot.rb:252:in mainloop’
from C:\TOOLS\net\rbot-0.9.6\rbot.rb:62

C:\TOOLS\net\rbot-0.9.6>

···


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Giuseppe Bilotta wrote:

Tom Gilbert wrote:

Giuseppe Bilotta wrote:

Still aborts saying that the requested address was not valid for the
context.

I upgraded to 0.9.6 but still the same error. I don’t even understand
who is giving the error …

Sounds like the socket libraries. Wanna paste the entire text of the
error?

C:\TOOLS\net\rbot-0.9.6>rbot
./rbot/ircbot.rb:240:in connect': failed to connect to IRC server at irc.azzurra.net 6667: The requested address is not valid in its context. - "connect(2)" (RuntimeError) from ./rbot/ircbot.rb:252:in mainloop’
from C:\TOOLS\net\rbot-0.9.6\rbot.rb:62

C:\TOOLS\net\rbot-0.9.6>

Ok. /etc/host MUST contain the reverse DNS for the server. If it
contains

213.203.143.52 irc.azzurra.net

rbot manages to connect.

···


Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS