- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: using xml::simple
Operating System - Linux
1753963
Members
7127
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2010 11:06 AM
тАО12-05-2010 11:06 AM
Hi All,
new to xml reading in perl,
I'm trying to read command's output using xml::simple. I do not want to direct the command output to file and then read it using XMLin.
do you know how can I do that?
thanks,
Itai
new to xml reading in perl,
I'm trying to read command's output using xml::simple. I do not want to direct the command output to file and then read it using XMLin.
do you know how can I do that?
thanks,
Itai
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2010 10:12 PM
тАО12-05-2010 10:12 PM
Solution
Hello.
You can read the whole output of your commaind in a variable and then pass that string to XML::Simple.
You can also pass it a file handle and that should be enough to not need to redirect command's output to a file:
use IO::Handle;
my $FH = new IO::Handle;
open($FH, "command |");
Now you can pass this to XML::Simple (note the lack of error checking).
Regards,
Goran
You can read the whole output of your commaind in a variable and then pass that string to XML::Simple.
You can also pass it a file handle and that should be enough to not need to redirect command's output to a file:
use IO::Handle;
my $FH = new IO::Handle;
open($FH, "command |");
Now you can pass this to XML::Simple (note the lack of error checking).
Regards,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2010 07:23 PM
тАО12-12-2010 07:23 PM
Re: using xml::simple
Hi Itai,
Another way to read XML is through
XML::LibXML
might be helpful
http://perl-xml.sourceforge.net/faq/#xml_simple
Thanks,
Aftab
Another way to read XML is through
XML::LibXML
might be helpful
http://perl-xml.sourceforge.net/faq/#xml_simple
Thanks,
Aftab
I work for HPE
Looking for a quick resolution to a technical issue for your HPE products? HPE Support Center Knowledge-base тАУ Just a Click Away!
See Self Help Post for more details
Looking for a quick resolution to a technical issue for your HPE products? HPE Support Center Knowledge-base тАУ Just a Click Away!
See Self Help Post for more details
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP