Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tm-dev] TM telnet terminal

Hi Sheldon,
 
you need to understand the difference between the Terminal and RSE.
These are currently separate things.
 
The terminal provides the ANSI emulation and a view, but it's not meant to be programmatically used -- after all the view is for users to type stuff, and users may be confused if a program also writes suff into their existing connection. The Terminal connectors are tightly coupled to the terminal view (i.e. they write the characters they receive directly into the view, no chance of intercepting).
 
RSE provides a framework of connections which are meant to be also used programmatically. In RSE, to write commands to a shell
you can use the SimpleCommandOperation for instance. We'll cover that as part of our tutorial on TM at EclipseCon, the slides are already
available: see http://www.eclipsecon.org/2007/index.php?page=sub/&id=3651
 
What you'd need is a Telnet connector for RSE, which should be pretty easy to do through Jakarta Commons Net.
Also note that with the upcoming user-defined actions for RSE, your users will have the chance to define commands
which they need frequently themselves: https://bugs.eclipse.org/bugs/show_bug.cgi?id=170909
 

Cheers,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm

 


From: dsdp-tm-dev-bounces@xxxxxxxxxxx [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Sheldon Dsouza
Sent: Saturday, February 10, 2007 12:11 PM
To: Target Management developer discussions
Subject: [dsdp-tm-dev] TM telnet terminal

Hi,

              I would like to know if it is possible to programmatically write commands to the telnet terminal. So if i have to execute a particular process on the remote target using telnet , i just have to write the command name to the terminal and the process should start on target.

Regards,
Sheldon

Back to the top