Solved

Telnet data to xml files

Posted on 2007-03-30
6
660 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…

948 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now