Solved

Telnet data to xml files

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Mongodb hierarchy 2 34
Nessus Scan 1 64
XML file fails to process correctly 3 42
SSH logs Cisco switch 4 33
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now