Device::Modem::Log::File(3pm) User Contributed Perl Documentation Device::Modem::Log::File(3pm)NAME
Device::Modem::Log::File - Text files logging plugin for Device::Modem class
SYNOPSIS
use Device::Modem;
my $box = Device::Modem->new( log => 'file', ... );
my $box = Device::Modem->new( log => 'file,name=/var/log/mymodem.log', ... );
...
DESCRIPTION
This is meant for an example log class to be hooked to "Device::Modem" to provide one's favourite logging mechanism. You just have to
implement your own "new()", "write()" and "close()" methods.
Default text file is "/var/log/modem.log". On Windows platforms, this goes into "%WINBOOTDIR%/temp/modem.log". By default, if the folder of
the log file does not exist, it is created.
This class is loaded automatically by "Device::Modem" class when an object is instantiated, and it is the default logging mechanism for
"Device::Modem" class.
Normally, you should not need to use this class directly, because there are many other zillions of modules that do logging better than
this.
Also, it should be pondered whether to replace "Device::Modem::Log::File" and mates with those better classes in a somewhat distant future.
REQUIRES
Device::Modem
EXPORTS
None
AUTHOR
Cosimo Streppone, cosimo@cpan.org
COPYRIGHT
(C) 2002 Cosimo Streppone, <cosimo@cpan.org>
This library is free software; you can only redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Device::Modem Device::Modem::Log::Syslog
perl v5.8.8 2005-04-30 Device::Modem::Log::File(3pm)
Dear all
I have installed Openwebmail 1.64 on Mandrake Linux 8.2. This application creates a log file at /var/log with the name openwebmail.log. The application needs that the permission of this log file should be as follows:
owner - root
group - mail
mode - 660
Even though i set the... (6 Replies)
Hi all
I need to write a small shell script, where we have one Log file and another File 1 containing some tags in it.
My log file can have multiple tags in it which can be other than the ones that are part of File 1.
So I need to write a script that will run and test whether the tags... (5 Replies)
Hi
I am writing a script file which sends the log files along with their size in a folder named log to a file called temp.log using the following cmd:
ls -st 190_GSTV_HUX_003QISCGSK026** >> /home/user/temp.log
the temp.log looks like this:
16 190_GSTV_HUX_003QISCGSK026_message070321.log
... (11 Replies)
I'm not sure if this query is relevant to this forum but here goes anyways...
I want analyse log files that do not appear to be of standard format. I have tried using Analog but cannot config it to read the files.
Does anyone have any advice on working with log files taken from a Unix... (6 Replies)
Hi all,
I have the following shell script code which tries to sftp and writes the log into the log file.
TestConnection ()
{
echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME
$SETDEBUG
if ]; then rm $SCRIPT ; fi
touch $SCRIPT
echo "cd" $REMOTEDIR >> $SCRIPT
echo "quit" >>... (10 Replies)
Hi All,
Having a log file with thousounds of lines as:
01-JAN-2009 15:06:06 15.64.3.22
01-JAN-2009 15:06:07 15.64.3.22etc...
How can i output a much smaller filtered list:
Grab the ips i need (do the avg in a time range of 30 min for example). And then output the Timestamp and Ip... (6 Replies)
In our shop, we have a situation where a log file from our interface engine software has begun maxing out in file size (reaching the 32-bit "2147483647" limit). Currently, the only way to rectify this is to stop the interface and restart it, which generates a new log. Easy enough, but the... (6 Replies)
I have this huge log file on my linux box that gets generated every day. I'm able to extract the information I need; however I really would like it to be broken down every 10mins.
Log File Snippet
01:23:45 MARYHADA Maryhadalittle.lamb(): fleece as white as snow 1394 for and everywhere that... (8 Replies)
Hi,
I am in trouble ... again :wall:
I formating a log file as .txt from Unix (solaris 9) and then I compress it with gzip and I use uuencode and send it in an email.
gzip -c ${fic_report} | uuencode Report_File.gz > ${attachment_file}
my problem is when I received the mail with the... (6 Replies)
I'd like to copy strings from a log file and put them into a CSV.
The strings could be on different line numbers, depending on size of log.
Example Log File:
File = foo.bat
Date = 11/11/11
User = Foo Bar
Size = 1024
...
CSV should look like:
"foo.bat","11/11/11","Foo Bar","1024" (7 Replies)
Hi - I want to log commands typed by oraapps user with time into some log file on runtime.
HISTTIMEFORMAT="%d/%m/%y %T " works but any one with oraapps user can delete the history.
OS : RHEl 5.6
Any help is appreciated. (5 Replies)
Hi,
I urgently need some help how to extract distinct entries from a Log file.
The Log File may have same error occuring many times so how do i count the occurance of an error in file and also extract out distinct errors in a file.
Eg:-
I have a file name A.log
it contains entries as below:-... (5 Replies)
Hi there,
i am looking to download the Device manager agent for HPUX 11.31. Where we can find it. I've tried on google and Hitachi web sites and spent several hours, i just couldn't find anything at all.
Please help.
Thank you very much! (8 Replies)
Hello everybody,
I didn't know were to post this, so i posted here in hardware section.
I'm having some troubles while trying to interconnect two pc's via modem (soft fax modem, RJ-11 jack). One is a Handheld PC (HP Jornada 728) with a single fax modem slot, and the other computer is a PC with... (6 Replies)
Hello All,
Below is the excerpt from my Informatica log file which has 4 blocks of lines (starting with WRITER_1_*_1). Like these my log file will have multiple blocks of same pattern.
WRITER_1_*_1> WRT_8161
TARGET BASED COMMIT POINT Thu May 08 09:33:21 2014... (13 Replies)