templer122197
asked on
Connecting to UNIX from WinNT to run app, and colect data. Best way ??
I wanna write a WinNT app that connect to UNIX then run a UNIX app. The UNIX app will print data to standard output (the screen, if I use telnet). I want the WinNT app to collect these data.
I am thinking of the WinNt app to connect to UNIX via a Telnet port. But is this the BEST way to do this job ????
(1) Is there a better way ?
(2) Better protocol than Telnet, maybe ?
(3) Any libraries to make Telnet easier to program ??? Under WinNT ??? I cant seems to find any.
Thanks.
~templer
I am thinking of the WinNt app to connect to UNIX via a Telnet port. But is this the BEST way to do this job ????
(1) Is there a better way ?
(2) Better protocol than Telnet, maybe ?
(3) Any libraries to make Telnet easier to program ??? Under WinNT ??? I cant seems to find any.
Thanks.
~templer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The telnet is extremely simplistic. Open the port, send the user name, send the password, then send the command.
If you're doing this in a language that directly supports socket calls (C, C++, perl), it should be easy enough.
Otherwise, you can ride on top of the above-mentioned netcat.
Note:
Strange things may happen if the password's bad, the system prompts you to changed an old password, or some such. But that's the price you pay for riding on a protocol meant for human interaction instead of one designed for scripting (rsh/ssh). You can fix this in the Unix world with "expect," but I don't think it runs on NT.
If you're doing this in a language that directly supports socket calls (C, C++, perl), it should be easy enough.
Otherwise, you can ride on top of the above-mentioned netcat.
Note:
Strange things may happen if the password's bad, the system prompts you to changed an old password, or some such. But that's the price you pay for riding on a protocol meant for human interaction instead of one designed for scripting (rsh/ssh). You can fix this in the Unix world with "expect," but I don't think it runs on NT.
ASKER
Sorry for the very late reply. Thanks for your answers. Thanks a lot. Would appreciate if you could direct me to a free component that does all the 'telnet' job. Thanks again :)
My email is s_templer@rocketmail.com
~templer