Telnet with max/msp

Felix's icon

Hello!.
I’m trying to communicate via telnet with a video server. When I use the shell object (Is the only I find that could do the job…), I can connect to the server, but then I tried to log in and I can’t. The problem is that the shell object doesn’t give me any feedback of the communication, and so I’m blind of what is happening. I try to send the user name and password but it doesn’t work.
When I send the IP of the server (telnet 192.168.10.48), shell’s output response is:
Trying telnet 192.168.10.48…
Connected to 192.168.10.48.
Escape character is '^]'.

This is the only feedback I get …

If I do the same with the terminal.app of the G5, everything works fine (see example below):
I can connect, log in and send any commands defined by the server manufacturer: play,pause,next …

Last login: Wed Nov 1 13:22:24 on ttyp1
Welcome to Darwin!
picadeiro-picadeiros-power-mac-g5:~ picadeiropicadeiro$
telnet 192.168.10.48
Trying 192.168.10.48...
Connected to 192.168.10.48.
Escape character is '^]'.
Adtec Resident Telnet Server...
UserName:
ADTEC
ADTEC
PassWord:
NONE
****
User ADTEC connected

next
next
OK

play
play
OK

pause
pause
OK

Does anyone know what should I do to establish communication via telnet, between maxmsp and the video server ???
Thanks,
Felix

vade's icon

Use netcat, the nc command on OS X, and you can pipe its output to a
logfile (nc hostname/ip port > logfile) , or, to another which you
can read in via updreceive.

netcat is a general purpose network utility where you can 'build'
arbitrary servers and clients around. Its pretty handy.

v a d e //

www.vade.info
abstrakt.vade.info

On Nov 1, 2006, at 8:02 AM, Felix wrote:

>
> Hello!.
> I’m trying to communicate via telnet with a video server.
> When I use the shell object (Is the only I find that could do the
> job…), I can connect to the server, but then I tried to log
> in and I can’t. The problem is that the shell object
> doesn’t give me any feedback of the communication, and so
> I’m blind of what is happening. I try to send the user name
> and password but it doesn’t work.
> When I send the IP of the server (telnet 192.168.10.48),
> shell’s output response is:
> Trying telnet 192.168.10.48…
> Connected to 192.168.10.48.
> Escape character is '^]'.
>
> This is the only feedback I get …
>
> If I do the same with the terminal.app of the G5, everything works
> fine (see example below):
> I can connect, log in and send any commands defined by the server
> manufacturer: play,pause,next …
>
> Last login: Wed Nov 1 13:22:24 on ttyp1
> Welcome to Darwin!
> picadeiro-picadeiros-power-mac-g5:~ picadeiropicadeiro$
> telnet 192.168.10.48
> Trying 192.168.10.48...
> Connected to 192.168.10.48.
> Escape character is '^]'.
> Adtec Resident Telnet Server...
> UserName:
> ADTEC
> ADTEC
> PassWord:
> NONE
> ****
> User ADTEC connected
>
> next
> next
> OK
>
> play
> play
> OK
>
> pause
> pause
> OK
>
> Does anyone know what should I do to establish communication via
> telnet, between maxmsp and the video server ???
> Thanks,
> Felix
>
> --
> Felix Luque
> http://www.othersounds.net
> felix@othersounds.net

simon.ben@free.fr's icon

Hi,
I'm coming back to this old post. I'm having the same trouble as Felix had.
Unfortunately the expert Vade's language doesn't talk to me... or need more explanations...

I'm communicating to a LED display via a telnet protocol.
It works fine with the OSX Terminal and I'd like to use it inside a max patch (for instance, in order to communicate to more than one LED display).
I'm using the shell (UB version) object which seems to work fine (the date message returns me an answer in the max window).
When I'm typing "telnet 192.168.1.151", it returns stdout: "Connected to 192.168.1.151." and
"stdout: Escape character is '^]'." in the max window (as the Terminal does) and then, nothing appends when I'm sending commands (although Terminal does) . A "bang" message is returned to second outlet.

I've read the Vade's message but, although I Installed Netcat (I think I did...), I don't know how to proceed.

Thank you in advance.

Benoit.

cap10subtext's icon

I just came across this recently, had to scp files so I set up an rsa key between the two machines so they don't need a password to communicate between them. Not sure how safe it is but they aren't web machines. Might be useful, might not...

Can't find the page for it, but look for ssh without password private key and you should find something on it.