in reply to Re^2: Perl and Telnet
in thread Perl and Telnet

Here is a framework and hopefully it works for you. You start a script that does the "telnet" and waits for other scripts to execute commands on that telnet session. For such things you check out  perldoc perlipc. You can make your telnet program as a mini-server which will take requests from clients and then process them and return the results for you.

For info about forking processes try  perldoc -f fork. Also there are lot of nodes on this. Try supersearch

I am not sure what exactly this app would do but trying to help the "remote" server by having only one telnet session might be too much work for you and might not be a big deal for the server (if you are not planning on sending tons of msgs/sec). If the scripts should exchange data, then reading on IPC will help you.

Good Luck!

-SK