Re: Log::Dispatch and Data::Dumper

2009-04-25 Thread Chas. Owens
On Sat, Apr 25, 2009 at 21:45, Dan Fish wrote: > I use Log::Dispatch frequently to set up both file and email logging.  In > the past I have also used it with Data::Dumper for logging in debug mode > doing something like: > > > > $dispatcher->log(level => 'debug', message > =>sprintf("%s",Data::Du

Re: Log::Log4perl

2008-10-16 Thread Deviloper
If this helps: I am using Log4Perl in a typical forked-to-background-daemon. I had to do a little thinking to figure out the best place to initialize Log4Perl. The problem is, that the utilized shared vars lost their sharedness in the child proc. Maybe you have to initialize your Log4Perl-Obje

Re: Log::Log4perl

2008-10-15 Thread Rob Coops
On Wed, Oct 15, 2008 at 9:47 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Wed, Oct 15, 2008 at 06:04, Rob Coops <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I am a little stumped here, I have a nice little application that makes > use > > of Log4perl (which I really like a lot) and now that

Re: Log::Log4perl

2008-10-15 Thread Chas. Owens
On Wed, Oct 15, 2008 at 06:04, Rob Coops <[EMAIL PROTECTED]> wrote: > Hi all, > > I am a little stumped here, I have a nice little application that makes use > of Log4perl (which I really like a lot) and now that all the basic > functionality is in there I have started working on makking things go

Re: log level

2008-05-25 Thread gypsy
"Chas. Owens" wrote: > On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > > it logs its activity. I wish to have my logs exclude level 'debug'. > > > > Things tried: > > 1) Contact author -> no reply > > 2

Re: log level

2008-05-25 Thread David Moreno
Yeah. D. On Sun, 2008-05-25 at 00:36 -0400, Chas. Owens wrote: > On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > > it logs its activity. I wish to have my logs exclude level 'debug'. > > > > Things tr

Re: log level

2008-05-24 Thread Chas. Owens
On Sat, May 24, 2008 at 2:28 PM, gypsy <[EMAIL PROTECTED]> wrote: > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and > it logs its activity. I wish to have my logs exclude level 'debug'. > > Things tried: > 1) Contact author -> no reply > 2) Alter syslog.conf "mail.*" to "ma

Re: Log error

2008-05-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi All, Hello, #! /usr/tools/deployment/bin/perl use warnings; use strict; use lib "/home/m.belgaonkar/"; use lib "/home/p.gupta/"; $i=0; $p=0; $l=0; my $i = 0; my $p = 0; my $l = 0; $dt=qx(date); @dt1=split(' ',$dt); @[EMAIL PROTECTED]; @[EMAIL PROTECTED]; @[

Re: Log error

2008-05-13 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I have written once Perl script to perform certain task. In that script > I have defined one function to create the log file. > > The issue is that whenever I am running that script it is executing fine > but the moment it reaches to log () function it throws me follo

Re: log missing images

2008-05-12 Thread Gunnar Hjalmarsson
[ Please don't top-post! ] Hildreth, Steve wrote: Gunnar Hjalmarsson wrote: Hildreth, Steve wrote: What I am looking for is a parameter that I can add to my PERL script that will specify the file call that resulted in the log entry. How about showing us the Perl (not PERL) script you have so

RE: log missing images

2008-05-12 Thread Hildreth, Steve
p://www.lausd.net/error.html\";>"; Thanks, Steve --- Steve Hildreth Office: 213-241-1691 Cell: 213-215-8195 [EMAIL PROTECTED] -Original Message- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2008 12:13 PM To: beginners@perl.org

Re: log missing images

2008-05-12 Thread Gunnar Hjalmarsson
Hildreth, Steve wrote: What I am looking for is a parameter that I can add to my PERL script that will specify the file call that resulted in the log entry. How about showing us the Perl (not PERL) script you have so far? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl --

Re: log for script

2008-04-18 Thread Alan C
On Wed, Apr 16, 2008 at 11:58 PM, <[EMAIL PROTECTED]> wrote: > > Is there any mechanism where I can take the log of entire Perl script. I > mean to say that I need the log of each and every step which I am doing > in Perl script. That step may include > > 1: input from user > > 2: internal Perl sc

Re: log for script

2008-04-17 Thread Chas. Owens
On Thu, Apr 17, 2008 at 2:58 AM, <[EMAIL PROTECTED]> wrote: > Hi All, > > Is there any mechanism where I can take the log of entire Perl script. I > mean to say that I need the log of each and every step which I am doing > in Perl script. That step may include > > 1: input from user > > 2: in

Re: log file-pls reply

2007-05-09 Thread Chas Owens
On 5/10/07, Maphin Philip <[EMAIL PROTECTED]> wrote: I am having a .pl and .pm meant for a test script It gives result in console window only How can I redirect it to a file ie. 1. Create a file 2. Redirect console to that file Thanks That depends heavily upon which shell

Re: log file-pls reply

2007-05-09 Thread pangjr
In a message dated 2007-5-10 14:00:54 中国标准时间, [EMAIL PROTECTED] writes: I am having a .pl and .pm meant for a test script It gives result in console window only How can I redirect it to a file This question was replied many times. You may do it like, open LOG,">log.txt" or die $!

Re: log file help

2006-11-15 Thread Chris Parker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mumia W. wrote: > On 11/14/2006 09:53 PM, Chris Parker wrote: >> >> I couldn't find the answer while googling for a regexp to pull the ip >> from my log files so here I am. I am trying to get the ip's (source and >> destination) along with the ports f

Re: log file help

2006-11-15 Thread Mumia W.
On 11/14/2006 09:53 PM, Chris Parker wrote: I couldn't find the answer while googling for a regexp to pull the ip from my log files so here I am. I am trying to get the ip's (source and destination) along with the ports for a summary. WFLOG doesnt cover my firewall so I thought id try. Code i

Re: log file help

2006-11-14 Thread Rob Dixon
Chris Parker wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I couldn't find the answer while googling for a regexp to pull the ip from my log files so here I am. I am trying to get the ip's (source and destination) along with the ports for a summary. WFLOG doesnt cover my firewall so I t

Re: log and ln formular in perl

2006-08-20 Thread Ricardo SIGNES
* chen li <[EMAIL PROTECTED]> [2006-08-20T07:18:59] > I want to get the value 2 out of log based on 10 or > natural number e (the result is 0.301 and 0.609, > respectively). What are the formular for these two > caulculation and how can I find more about math stuff > in perldoc? Perl has a natural

Re: Log Parsing using split

2006-05-19 Thread John W. Krahn
Jeff Stout wrote: > I need help in extracting specific data from log files. > The log file has 51 fields I only need 11 fields from > that file. I need to "open" to a new file output with > only the data from the 11 fields. Your code doesn't show which eleven fields you want to output. > The new

RE: log filtering

2005-10-25 Thread Chris Devers
On Tue, 25 Oct 2005, mynullvoid wrote: At the moment I only have my script in bash, and found that there are many issues with my script. I would appreciate if anyone can write me a script that can accomplish what this. Super. How much were you thinking of paying? Are you taking bids? (Hint:

RE: log filtering

2005-10-25 Thread mynullvoid
Dear Steve Bertrand, At the moment I only have my script in bash, and found that there are many issues with my script. I would appreciate if anyone can write me a script that can accomplish what this. I shall take it from there and enhance to suit my environment. Please assist. I am running

RE: log filtering

2005-10-25 Thread Steve Bertrand
> My idea is to check auth.log file for it changes and create > files based on it's source IP, for example, if there are > login request from 192.168.0.1, so the system shall filter > the log and create db.192.168.0.1; in this new filtered log > file, it shall consist of the time and the destin

RE: log filtering

2005-10-25 Thread Steve Bertrand
> My idea is to check auth.log file for it changes and create > files based on it's source IP, for example, if there are > login request from 192.168.0.1, so the system shall filter > the log and create db.192.168.0.1; in this new filtered log > file, it shall consist of the time and the desti

Re: log output

2005-03-16 Thread Nishi Prafull
I just tried using the tctee program as follows: #!/usr/local/bin/perl5.6 -w use strict; my $logFile ='/automateLabelPush.log'; //line 5 my $tee_cmd = '/tctee.pl'; my $cmd1 = qq{ }; system("$cmd1 | $tee_cmd -a $logFile") ; at the end of the execution, I still get sh: syntax error at line 5: "|"

RE: log output

2005-03-16 Thread Chris Devers
On Wed, 16 Mar 2005, Paul Ohashi wrote: > I can't see enough to determine why your script is failing, but > the four lines below work as expected: > > #!/usr/local/bin/perl > $logFile = '/home/paulo/mylog.log'; > $myCmd = 'ls -l'; > system ("$myCmd | tee -a $logFile"); > > Hope this helps... Is

RE: log output

2005-03-16 Thread Paul Ohashi
ge- From: Nishi Prafull [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 12:02 PM To: Paul Ohashi Cc: beginners@perl.org Subject: Re: log output I tried this system("$cmd1 | tee -a $logFile") ; but I get sh: syntax error at line 5: `|' unexpected where line 5 is the

Re: log output

2005-03-16 Thread Nishi Prafull
I tried this system("$cmd1 | tee -a $logFile") ; but I get sh: syntax error at line 5: `|' unexpected where line 5 is the line in which I declare the var for the output log my $logFile ="/automateLabelPush.log"; On Wed, 16 Mar 2005 10:59:31 -0800, Paul Ohashi <[EMAIL PROTECTED]> wrote: > What

RE: log output

2005-03-16 Thread Paul Ohashi
What if you piped your system command to tee, like: system("$cmd1 | tee -a outfile.log") ; -Original Message- From: Nishi Prafull [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 10:55 AM To: beginners@perl.org Subject: log output Hi: I am running a perl script as part of a cr

Re: log rotate on multiple files

2005-03-09 Thread DBSMITH
AM cc Subject Please respond to Re: log rotate on multiple files Rathna N <[

Re: Log()

2004-11-24 Thread ds10025
Thanks everyone for you help. I'll use the suggestion below. Thanks Dan At 13:41 24/11/2004, Chris Devers wrote: On Wed, 24 Nov 2004, Todd Lewis wrote: > If your [unspecified object, possibly "script"] [is] writing > something[comma] I think you can output your die statement into a "log > file" usi

Re: Log()

2004-11-24 Thread Chris Devers
On Wed, 24 Nov 2004, Todd Lewis wrote: > If your [unspecified object, possibly "script"] [is] writing > something[comma] I think you can output your die statement into a "log > file" using print [logfile] "Whatever message you want\n". You can > also at certain points in your program output inf

RE: Log()

2004-11-24 Thread Bob Showalter
Gunnar Hjalmarsson wrote: > I don't know what log() is. perldoc -f log :~) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Log()

2004-11-24 Thread Todd Lewis
If your writing something. I think you can output your die statement into a "log file" using print [logfile] "Whatever message you want\n" . You can also at certain points in your program output information on the status of your program. It helps in debugging your program. If it is a longrunnin

Re: Log()

2004-11-24 Thread Chris Devers
On Wed, 24 Nov 2004 [EMAIL PROTECTED] wrote: > That could explain why I couldn't found any information. > > My understanding is that log() is a log() statement that logged > progress of the script to a error log file. Who told you this? Are you being asked to maintain a script someone else wr

Re: Log()

2004-11-24 Thread ds10025
That could explain why I couldn't found any information. My understanding is that log() is a log() statement that logged progress of the script to a error log file. Dan At 10:51 24/11/2004, Gunnar Hjalmarsson wrote: [EMAIL PROTECTED] wrote: I need to learn Perl. http://learn.perl.org/ I've a scri

Re: Log()

2004-11-24 Thread Prasanna Kothari
You can use "perl -d

Re: Log()

2004-11-24 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I need to learn Perl. http://learn.perl.org/ I've a script that need to debug. I've read that you can use log() in to trace the problem. How best to use it? I don't know what log() is. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e

RE: log in to domain with script

2004-06-06 Thread Tim Johnson
Here are some modules that should give you a push in the right direction. I'm not sure from your email whether your clients are all Windows 2000, or if you are running Active Directory. AD gives you some new challenges as well as more granular control of objects. I'm going to assume you're stil

Re: [OT]Re: log file -help

2003-07-01 Thread Sudarshan Raghavan
Vema Venkata wrote: Raghavan Can you re-write the same functionality in the perl pgm since i cudn't find any mailing list for shell wud be appreicated ur reply asap rgds venkat If you can get my boss' approval and pay for it, certainly :-) shell programming newsgroups must be under either comp.l

RE: [OT]Re: log file -help

2003-07-01 Thread Vema Venkata
bject: Re: [OT]Re: log file -help Vema Venkata wrote: >raghavan, >sorry to bother u. > >since i was new to this domain.. >can you let me know how did you make out it is shell not perl? >ur reply is most appreicated. > The if - fi construct, conditions specified within [] etc. a

[OT]Re: log file -help

2003-07-01 Thread Sudarshan Raghavan
Vema Venkata wrote: Hi All My code looks like this xapipgm=srvtst26.pl pgrep -f $xapipgm > /dev/null if [ $? -eq 0 ] then set `pgrep -f $xapipgm ` echo "AHD XAPI Server ($xapipgm) Running with Process Id: $1" else echo "AHD XAPI Server is now Started Running." set `date '+%Y %m %d %H %M' ` xap

Re: Log maintanence prblem...

2003-01-02 Thread John W. Krahn
Tim Martin wrote: > > I have run into a small problem with the script we have been working on for > log management. > Problem 1 - The script must be in the same sub directory as all the logs. What makes you think that it must? > How can I get the script to run from /var/tmp/gatelog a

Re: log window

2002-09-23 Thread Mat Harris
have the script write to a temporary log file and then just tail it. simple but effective. On Mon, Sep 23, 2002 at 10:23:17 +0100, [EMAIL PROTECTED] wrote: > Hi all > > any thoughts on how to approach this > > I have several perl scripts running and i would like to be able to open up > a lo

Re: log-in/out w/o cookies

2002-04-08 Thread fliptop
Four Hewes wrote: > My criteria: > > I. Account structure I want: > unique user accounts > users are members of groups (a la Unix) > use of HTTP's ".passwd" is OK > > II. Platform I'd use: > OS: Win, Unix, or Linux > Server: Apache or IIS > Dev.: MacPerl5 > > III. Security of log-in: > secure

Re: log file question

2002-04-03 Thread Jeff 'japhy' Pinyan
On Apr 3, Hans Holtan said: >I don't know if this is too general for your purposes, but this >should look through a whole file and find anyplace that the word >"running" appear in three consecutive lines. Actually, the /g switch there might make it break; I'd remove it. > ($all_

Re: log file question

2002-04-03 Thread Hans Holtan
Hi Lance, I don't know if this is too general for your purposes, but this should look through a whole file and find anyplace that the word "running" appear in three consecutive lines. open (INFILE, "+; for (0 .. ($#all_lines-2)){ if ( ($all_lines[$_] =~ m/running/gi) a

Re: log file question

2002-04-03 Thread John W. Krahn
Lance Prais wrote: > > I am using the following code to parse through a log file and match words on > two sequential lines. I would like to add some code to it to check three > sequential lines. I have tried several things but with not luck. Could > someone please take a look at the code at let

Re: Log Users

2002-01-11 Thread Scott Taylor
On Thu, 10 Jan 2002 [EMAIL PROTECTED] wrote: Sorry for the OT, but I saw this email address and immediately went into headers looking for a spammer. lmao Nice address. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Log Users

2002-01-11 Thread Leon
- Original Message - From: <[EMAIL PROTECTED]> > I already have a user registration form set up, but now I want to be able to > display the last 10 visitors which logged into my site. What you can do is everytime a visitor logs in, it is captured into a file, placing the last entry on to

Re: Log::LogLite -- Returning references to log objects

2001-07-13 Thread Maxim Berlin
Hello Michael, Saturday, July 14, 2001, Michael Dube <[EMAIL PROTECTED]> wrote: MD> I am using the Log::LogLite module to facilitate application logging in my MD> script. [...] MD> I so far have been unsuccessful at doing this. Whenever I return $log, it MD> is undefined in the calling module.

Re: Log File move script revisited

2001-07-11 Thread Michael Fowler
On Wed, Jul 11, 2001 at 10:49:25AM -0500, Tom Yarrish wrote: > However, on the production box, it doesn't (meaning if today is the 11th, > the log file will be 20010711.log, which is not what I want). Can anyone > give me some ideas on why this might be happening? I can't see anything in your cod

Re: Log Analyzer for IIS on win2k.

2001-07-01 Thread Brett W. McCoy
On Mon, 2 Jul 2001, Rajeev Rumale wrote: > I am looking for a log analyzer scripts for IIS over win2k if possible > Freeware. Here's a start: http://freshmeat.net/search/?q=log+analyzer -- Brett http://www.chapelperilous.net/btfwk/ ---