telnet is open socket to "xxx:23" ?
Klaus Major
k_major at osnabrueck.netsurf.de
Thu May 9 10:55:01 EDT 2002
Hi Clau,
> Hi,
>
> I'm fairly new to Revolution (so don't blame me for RTFMs or so ;)
>
> I want to controll my Elsa-router via telnet.
> So i do something like:
>
> put "192.168.0.254:23" into mySocket
> open socket to mySocket
>
> and with
> read from socket mySocket
>
> I get the start messages from the router,
> but when i try to write something to the router with:
>
> write "cd Other" & linefeed to socket mySocket
> write "do Boot-system" & linefeed to socket mySocket
>
> (this should reboot the router) nothing happens.
>
> A following
> read from socket mySocket for 22
>
> gives me "cd Otherdo Boot-system" as the echo from telnet.
>
> So, to me it looks like the <Enter-Key> after each command is not
> transmitted.
>
> How can i send an <Enter> with write to socket ?
>
>
> Regards,
> Claus Dreischer.
don't know if this helps, but try:
...
write "cd Other" & CRLF to socket mySocket
...
Tschuess :-)
Klaus Major
k_major at osnabrueck.netsurf.de
More information about the use-livecode
mailing list