Interacting with a Telnet Session

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-04-17
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.

Question by:Harley12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

FlamingSword earned 200 total points
ID: 8021747
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.

Expert Comment

ID: 8022174
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

Expert Comment

ID: 9447500
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.

Author Comment

ID: 9451669
Thanks for advice.  I have decided to edit files as FlamingSword suggest.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Make the most of your online learning experience.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question