01-15-2008
Yea.. just got the stuff in the morning, and I only have merely 12hours before submitting the report. Gah.
Thanks for your reply, but your code is nice enough to extract out the time, and I won't be needing all. Need it to match these 2 cases:
1) LogEvent ID ="Timer Start"
2) <![CDATA[send messages
What if I just want to extract the whole LogEvent ID="Timer Start"?
From <LogEvent ID="Timer Start"> to </LogEvent>.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Scripting Gurus,
I need help with extracting data from the XML file using shell script.
The data is in a large XML and I need to extract the id values of all completedworkflows. Here is a sample of it. Input and output data is also in the attached text files.
<wfregistry>... (5 Replies)
Discussion started by: yajaykumar
5 Replies
2. Shell Programming and Scripting
Hi, I want to get data from Xml file by using sed or awk command. I want to get the following result :
mon titre 1;Createur1;Dossier1
mon titre 1;Createur1;Dossier1
and save it in cvs file (fichier.cvs).
FROM this Xml file (test.xml):
<playlist version="1">
<trackList>
<track>... (1 Reply)
Discussion started by: yeclota
1 Replies
3. Shell Programming and Scripting
I have an xml file data as shown below:
<impl name="Nortel" is-enabled="true">
<package-mappings>
<const-mapping target-state="EndPoint"
target-param="cfCNDSubscribed" constant-value="true"/>
<const-mapping... (2 Replies)
Discussion started by: ravi_rn
2 Replies
4. UNIX for Dummies Questions & Answers
Hello People,
I have the following contents in an XML file
...........
...........
..........
...........
<Details = "Sample Details">
<Name>Bob</Name>
<Age>34</Age>
<Address>CA</Address>
<ContactNumber>1234</ContactNumber>
</Details>
...........
.............
.............. (4 Replies)
Discussion started by: sushant172
4 Replies
5. Shell Programming and Scripting
Please help me out to extract the Data from the XML Log files.
So here is the data
ERROR|2010-08-26 00:05:52,958|SERIAL_ID=128279996|ST=2010-08-2600:05:52|DEVICE=113.2.21.12:601|TYPE=TransactionLog... (9 Replies)
Discussion started by: raghunsi
9 Replies
6. Shell Programming and Scripting
Hi ,
I have input file as XML. following are input data
#complex.xml
<?xml version="1.0" encoding="UTF-8"?>
<TEST_doc xmlns="http://www.w3.org/2001/XMLSchema-instance">
<ENTRY uid="123456">
<protein>
<name>PROT001</name>
<organism>Human</organism>
... (1 Reply)
Discussion started by: mohan sharma
1 Replies
7. Shell Programming and Scripting
Hi evry1,
This is my 1st post in this forum.Pls help me
I want to extract some data froma xml file which has 2000 lines using shell scripting. Actually my xml file has some "audio and video codes" which i need to arrange in a column wise format after extracting it using shell scripting.I... (4 Replies)
Discussion started by: arun_kohan
4 Replies
8. Shell Programming and Scripting
Hi ,
I have input file as XML. following are input data
#complex.xml
Code:
<?xml version="1.0" encoding="UTF-8"?><TEST_doc xmlns="http://www.w3.org/2001/XMLSchema-instance"> <ENTRY uid="123456"> <protein> <name>PROT001</name> <organism>Human</organism> ... (1 Reply)
Discussion started by: arun_kohan
1 Replies
9. Shell Programming and Scripting
Hi Guys,
I am in a need to extract data from a xml file. The XML file format is as below.
<data jsxnamespace="propsbundle" locales="">
<locale>
<!--Error messages starts-->
<record jsxid="CHARPAIR001" jsxtext=" must be selected"></record>
<record... (1 Reply)
Discussion started by: Showdown
1 Replies
10. Shell Programming and Scripting
Hello Shell Gurus,
I have a requirement to get the specific tags from a XML file.
Here is my code snippet
<jdbc-system-resource>
<name>SDPData Source</name>
<target>AdminServer,osb_server1,soa_server1</target>
... (30 Replies)
Discussion started by: Siv51427882
30 Replies
LEARN ABOUT DEBIAN
prima::timer
pod::Prima::Timer(3) User Contributed Perl Documentation pod::Prima::Timer(3)
NAME
Prima::Timer - programmable periodical events
SYNOPSIS
my $timer = Prima::Timer-> create(
timeout => 1000, # milliseconds
onTick => sub {
print "tick!
";
},
);
$timer-> start;
DESCRIPTION
Prima::Timer arranges periodical notifications to be delivered in certain time intervals. The notifications are triggered by the system,
and are seen as "Tick" events. There can be many active Timer objects at one time, spawning events simultaneously.
USAGE
Prima::Timer is a descendant of Prima::Component. Objects of Prima::Timer class are created in standard fashion:
my $t = Prima::Timer-> create(
timeout => 1000,
onTick => sub { print "tick
"; },
);
$t-> start;
If no `owner` is given, $::application is assumed.
Timer objects are created in inactive state; no events are spawned. To start spawning events, <start()> method must be explicitly called.
Time interval value is assigned using the <::timeout> property in milliseconds.
When the system generates timer event, no callback is called immediately, - an event is pushed into stack instead, to be delivered during
next event loop. Therefore, timeout value is not held accurately, and events may take longer time to pass. More accurate timing scheme, as
well as timing with precision less than a millisecond, is not supported by the toolkit.
API
Properties
timeout MILLISECONDS
Manages time interval between "Tick" events. In set-mode call, if the timer is in active state ( see "get_active()", the new timeout
value is applied immediately.
Methods
get_active
Returns a boolean flag, whether object is in active state or not. In the active state "Tick" events are spawned after "::timeout" time
intervals.
get_handle
Returns a system-dependent handle of object
start
Sets object in active state. If succeed, or if the object is already in active state, returns 1. If the system was unable to create a
system timer instance, 0 is returned.
stop
Sets object in inactive state.
Events
Tick
A system generated event, spawned every "::timeout" milliseconds if object is in active state.
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
SEE ALSO
Prima, Prima::Object
perl v5.14.2 2009-02-24 pod::Prima::Timer(3)