Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: searching for string & number

by brsaravan (Scribe)
on Nov 27, 2008 at 09:05 UTC ( [id://726342]=note: print w/replies, xml ) Need Help??


in reply to searching for string & number..

Read the log file and use regex to get the pid and the string (.c file )
open (FH, "logfile") || die "Cannot open file"; while ($line = <FH>) { my ($pid, $cfile) = ($line =~ /cm:(\d+)\s+([^(]*)/); print "$pid $cfile\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://726342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found