I am testing a server-client product. I would like to remotely execute a server command through the client via silk and listen for the response from the server. Normally, I use the Telnet.inc include file that I got from segue to exectue these commands by connecting to the correct port on the server and parsing the results in a list. I would like a more sophistacated method where I can send a single command through opening a socket and get the result returned as a variable. Does anybody know how to do this?
"The New Vision In Appliance Networking"
If you want what you can do is to call a perl script and this script will return a result to a file. It's the least effort you can put.
The other way(better and more work relative to the above) is to write your own dll that does what you want. Basically you are looking at doing what a telnet is doing. It sends request to a server at port 23(port for a server is the service entry point, there a many reserved ones), and waits for an answers(it could be trimed at your need). If you really want to know how it works, I can dig the software from a book called TCP/IP something Vol3, it has a working example of telnet. Or you can dig on the net for telnet source code using preferably using winsock.
//My estimate of time to do that:
expert : few hours
intermediate: 1 to 2 days
newbie : a week or less