-
C++/Telnet/Linux
Good day,
I will be creating a telnet application in C++ to be deployed in Linux. I created POC about it if it is possible in C++. The reason why I needed to create a telnet application is because I will be connecting to a server, run some commands there and get all the files generated by the commands.
I tried running it using system() to no avail. For some reason I could not read/get the output of the telnet so that I can input my username and password. If anyone has any idea on how to do this please help.
-
Have you tried using ssh instead?
--
Mats
-
You'll need to use some shell scripting to get it to work. Off the top of my head you'll need to use linux pipes and then fork() and exec() your program.