Sponsored Content
Top Forums UNIX for Beginners Questions & Answers General Purpose XML Processing Post 302973809 by RavinderSingh13 on Sunday 22nd of May 2016 03:30:29 AM
Old 05-22-2016
Hello Corona688(One of the Gems of this forum),

First of all a big THANK YOU for writing this brilliant code Smilie(fan of you always). Could you please post a example or complex example for a Input_file and code too here, I apologies to bother you on same but it will be helpful for us to understand the code more clearly. I will be grateful to you if you could do so.

Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Looking for a general purpose System Monitor

Does anyone have any scripts or suggestions on a general purpose Unix/Linux monitoring tool? (5 Replies)
Discussion started by: darthur
5 Replies

2. Shell Programming and Scripting

need help on xml processing

I am trying to divide a xml file(my.xml) like this: <?xml version="1.0" encoding="UTF-8"?> <Proto PName="hmmmmmmm"> <Menu id="A" ver="1"> <P> <P name="AA" Type="X"/> <P name="BB" Type="Y"/> <P name="CC" Type="Z"/> </P> ... (4 Replies)
Discussion started by: demoprog
4 Replies

3. Shell Programming and Scripting

CSV processing to XML

Hi, i am really fresh with shell scripting and programming, i have an issue i am not able to solve to populate data on my server for Cisco IP phones. I have CSV file within the following format: ;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;... (9 Replies)
Discussion started by: angel2008
9 Replies

4. Programming

help me with perl script xml processing

Hi everyone, I have Xml files in a folder, I need to extract some attribute values form xml files and store in a hash. My xml file look like this. <?xml version="1.0" encoding="UTF-8"?> <Servicelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"... (0 Replies)
Discussion started by: pavani reddy
0 Replies

5. Shell Programming and Scripting

Help with XML file processing

I need to get all session_ID 's for product="D-0002" from a XML file: Sample input: <session session_ID="6411206" create_date="2012-04-10-10.22.13.000000"> <marketing_info> <program_id>D4AWFU</program_id> <subchannel_id>abc</subchannel_id> </marketing_info> ... (1 Reply)
Discussion started by: karumudi7
1 Replies

6. Shell Programming and Scripting

processing xml with awk

With the following input sample extracted from a xml file <rel ver="123"> <mod name="on"> <node env="ac" env="1"> <ins ip="10.192.0.1"/> <ins ip="10.192.0.2"/> ... (1 Reply)
Discussion started by: cabrao
1 Replies

7. UNIX for Beginners Questions & Answers

General Purpose Date Script

There must be thousands of one-off solutions scattered around this forum. GNU Date is so handy because it's general but if they're asking they probably don't have it. We have some nice scripts but they tend to need dates formatted in a very particular way. This is a rough approximation which... (18 Replies)
Discussion started by: Corona688
18 Replies
MRTG-SENSORS(1) 					       MRTG helper utilities						   MRTG-SENSORS(1)

NAME
mrtg-sensors - Returns data from lm-sensors SYNOPSIS
mrtg-sensors [-m multiplier] chip label [chip label] DESCRIPTION
mrtg-sensors uses the lm-sensors library to query various system sensors for information such as temperature, fan speed, etc. The output is written in a form useful as input for the mrtg utility. Up to two pairs of chips and labels may be specified. The first is used for the incoming data value in mrtg, while the second is used for the outgoing data value. Of course, they need not correspond to incoming or outgoing data, that is merely what mrtg expects. "chip" is the name of the chip to query, and "label" is the label of the piece of information that should be queried from the given chip. sensors(1) can be used to look up all available chips and labels on your system. Wildcards may be used in chip names, but only the first matching chip will be queried. If you use the special name "dummy" as a chip name, nothing will be queried, and a value of zero will be sent to mrtg. -m is the multiplier to be used in the output. The default multiplier is 1. Note that you may find it more useful to use sensors.conf(5) to set global multipliers for sensors. EXAMPLES
mrtg-sensors dummy dummy adm9240-* fan2 Get the speed of fan #2 from the adm9240 chip. mrtg-sensors -m 0.5 adm9240-* fan1 adm9240-* fan2 Get the speeds of both fan #1 and fan #2, halfing both. mrtg-sensors -m 2 dummy dummy adm9240-* temp Get the cpu termerature, and double it. SEE ALSO
sensors(1) sensors.conf(5) AUTHOR
mrtg-sensors was written by Joey 'no pseudo-code' Hess <joeyh@debian.org>. mrtgutils 0.1 2001-03-04 MRTG-SENSORS(1)
All times are GMT -4. The time now is 10:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy