Please show us the output from the commands:
and, since I suggested several possible variations on the script; show us the exact script that you used, tell us what shell you used, and show us the exact command you used to invoke the script.
As I said before, I'm in the US Pacific timezone (where the output from date is now Tue May 6 23:32:04 PDT 2014). With your latest sample data, I'm getting:
If I run it again in a half an hour (when the date here is May 7th), I'll get the above lines and the line:
It is, however, interesting that you have data in your log file that should not have been written until seven minutes after you ran the script. (You showed a start time of 22:50:40 on May 6, so you ran the program at 00:50:40 on May 7???)
Help
There are so many lines in log file like 'SQL> spool off'
just I want to add one new line after this to seperate
each one
eg;
SQL> spool off
-------------------------------
SQL> spool off
-------------------------------
SQL> spool off
------------------------------- (2 Replies)
I have errors in the log that span multiple lines and I can find say the 2nd line in the log of this error using an unique word. However, this only gets me the line that the word appears in not the full error which may be 3 or four line long. So if there way to display say the line before a match... (4 Replies)
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Hi guys, I'm really happy to find this forum
I have a log file, and I have to find all lines that have "error" word, and then save this output in file, the output file has to have just only one line to any Duplicated lines and counter that show how many time this lines duplicated?
I already... (2 Replies)
Hi all:
I'm working on a HPUX 11.23 system and I am needing to parse a tomcat-jakarta log file for memory use. Getting the desired data is easy, assuming the log file does not grow. This file grows constantly and I want to check it q 5 min. The next check will pick up from where it left off 5... (4 Replies)
Greetings, I'm new to this forum, also new to shell script
I have done some simple shell script before, like backup linux machine using rsync and crontab, but now I need to do some log analyzing, which is beyond my ability... so I'm going to seek for help in this forum, hope someone could give... (5 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
Hi,
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
Dear all,Zabbix version : 2.4 (yes, I know, upgrading soon - honest)
Server OS version : CentOS 6, 64-bit (CentOS 7 with the Zabbix upgrade)I've got a large log file that I would like to read by an external process. It's basically the same as reading the item value on a web-page. I have... (5 Replies)
Discussion started by: rbatte1
5 Replies
LEARN ABOUT DEBIAN
qpsmtpd::connection
Qpsmtpd::Connection(3pm) User Contributed Perl Documentation Qpsmtpd::Connection(3pm)NAME
Qpsmtpd::Connection - A single SMTP connection
SYNOPSIS
my $rdns = $qp->connection->remote_host;
my $ip = $qp->connection->remote_ip;
DESCRIPTION
This class contains details about an individual SMTP connection. A connection lasts the lifetime of a TCP connection to the SMTP server.
See also Qpsmtpd::Transaction which is a class containing details about an individual SMTP transaction. A transaction lasts from "MAIL
FROM" to the end of the "DATA" marker, or a "RSET" command, whichever comes first, whereas a connection lasts until the client disconnects.
API
These API docs assume you already have a connection object. See the source code if you need to construct one. You can access the connection
object via the "Qpsmtpd" object's "$qp->connection" method.
new ( )
Instantiates a new Qpsmtpd::Connection object.
start ( %args )
Initializes the connection object with %args attribute data.
remote_host( )
The remote host connecting to the server as looked up via reverse dns.
remote_ip( )
The remote IP address of the connecting host.
remote_port( )
The remote port.
remote_info( )
If your server does an ident lookup on the remote host, this is the identity of the remote client.
local_ip( )
The local ip.
local_port( )
The local port.
hello( )
Either "helo" or "ehlo" depending on how the remote client greeted your server.
NOTE: This field is empty during the helo or ehlo hooks, it is only set after a successful return from those hooks.
hello_host( )
The host name specified in the "HELO" or "EHLO" command.
NOTE: This field is empty during the helo or ehlo hooks, it is only set after a successful return from those hooks.
notes($key [, $value])
Get or set a note on the connection. This is a piece of data that you wish to attach to the connection and read somewhere else. For example
you can use this to pass data between plugins.
clone([%args])
Returns a copy of the Qpsmtpd::Connection object. The optional args parameter may contain:
no_reset (1|0)
If true, do not reset the original connection object, the author has to care about that: only the cloned connection object is reset at
the end of the connection
relay_client( )
True if the client is allowed to relay messages.
perl v5.14.2 2009-04-02 Qpsmtpd::Connection(3pm)