[Tfug] Netcat and CHAT

Patrick Hollins tfug@tfug.org
Sun Jan 26 22:21:01 2003


Sounds like expect would be the tool of choice.

Be sure to see expects "spawn" command.

You may wish to check out the "tip" command instead of chat.

Patrick

Choprboy wrote:

>Anybody ever do anything with netcat and chat/expect??? I was trying to write 
>a quick script to communicate with a device (via telnet interface), but I 
>can't seem to get chat to respond. Anybody do something like this already? I 
>need to connect, respond to a response, and possibly reiterate a few thousand 
>times.
>
>I was trying to do something like, with lots of different variations:
>
>chat -f chatscript <backpipe |nc <remote host> 23 >backpipe
>
>
>Adrian
>_______________________________________________
>tfug mailing list
>tfug@tfug.org
>http://www.tfug.org/mailman/listinfo/tfug
>  
>