• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

Interacting with a Telnet Session

I am writing a Windows application that requires work to be done on a Unix box.  Is there a way to open a telnet session and interact with that session or is there any other way that I could execute commmands on a UNIX box from a Windows box? Samba is installed on the UNIX machines so copying files is not an issue, just executing commands. Just looking for ideas here.

1 Solution
1) Yes, telnet is fine. It is quite nice waty in fact to access client to server.

2) Another method, depending on needs, is ftp. So desktop edits file, thene file moved to server. Server normally runs the file, as a scheduled job.

3) same as above, but use FTP to 'move' file. Have server look for file, and run it when found. Delete when doone.

The file of course is the substance of commands.This saves time of typing and typos that can occur with telnet only option.
You can technically just use telnet to execute commands, although this could be cumbersome, depending on the telnet daemon on the remote server, you could find you get strange formatting characters in anything returned (if you want get the output of your commands), and also telnet escape command sequences (the telnet RFC's give details).

An easier way is to use rsh, remote shell, if you have access.  It pretty much does the same as you are looking for.  "rsh" is a standard command on most linux/unix boxes, and windows XP, not sure if its available on other windows versions though.

Good luck
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
Harley12Author Commented:
Thanks for advice.  I have decided to edit files as FlamingSword suggest.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now