Solved

Telnet data to xml files

Posted on 2007-03-30
6
694 Views
Last Modified: 2011-04-14
Experts,

I have an urgent issue to deal with and I have no clue how to do this. There is a subscription based service that sends updated data through telnet session in XML format. The connection needs to be live all the time. There are several xml files that come through it. I need to be able to store content that i see in telnet to my local file system as xml documents.

How do I go about doing that?

Thanks for your help
0
Comment
Question by:aimehdi
[X]
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
  • 3
6 Comments
 
LVL 10

Accepted Solution

by:
BobSiemens earned 500 total points
ID: 18829607
If I understand you right, I have a solution.

I need to do weird things like that sometimes.  I use a program called TeraTerm.  TeraTerm has powerful macro and file logging capabilities.  Using these capabilities, it wouldn't be very hard to have this telnet program wait until it saw an XML tag, grab an XML file, and save it to a decent name when it saw the tag was closed.

Hopefully I understand your need.

http://en.wikipedia.org/wiki/TeraTerm

0
 
LVL 10

Expert Comment

by:BobSiemens
ID: 18829691
Also, you could simply use TeraTerm to log the telnet session and then use a tool of your choice (e.g. awk or Perl) to grab whatever is XML.
0
 
LVL 10

Expert Comment

by:BobSiemens
ID: 18829700
PPS.

The source code for TeraTerm is available and you could figure out how to do it perfectly.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18834017
So do you currently open a telnet session and leave it running continuously to capture whatever XML data gets displayed?

If so, then you could do what you need with Perl and the Net::Telnet module.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 161
PowerShell script to remove string in xml file 3 52
Please Explain What Reading a Zip file Back In Means 11 79
Load XML element 3 43
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

710 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