Any ideas on how to speed this up?
I've been researching this for a while and this forum keeps showing up so i thought id see if anyone here could help. So without to much explanation, i'm essentially trying to get a web page component to cause the web server its running on to issue a telnet command. I have this working already by triggering php with a button to execute a shell script that creates a new telnet session and issues the command.
The problem is that the telnet session takes a few seconds to connect, meaning that the command is not sent till a few seconds after the button is pressed. I'd like to speed this up, one way that occurred to me would be to keep some kind of persistent telnet session going in the background and just issues commands to it when necessary but i'm not really sure how to implement that, any ideas?