Re: mystery failure notice

2001-08-01 Thread Rudy Zung

On Wed, Aug 01, 2001 at 10:34:27AM -0500, Virginia Chism wrote:
> I received a failure notice concerning an email I did not send.  I am
> attempting to track down how this happened and have hit a wall.  When I do
> 'tail -f /var/log/maillog' I get current activity.  If I do 'more
> /var/log/maillog' it goes all the way back to day one and I don't have time
> to slog through FOUR YEARS of maillog when what I need was a couple of days
> ago.  Is there any way to select a certain number of items to view in this
> log?


   tail -200 /var/log/maillog

will get you the last 200 lines in the file. I usually do it as

   tail -200 /var/log/maillog | more

and adjust the tail number-of-lines argument to get me to the date range
that I want.

-- 

...Ru   (a low-cost superhero)
   On, on! Blue skies. Think snow.
   1740484I 998300172 076662 82968/A17215 045124P E286/184435
   975-203608 11859 DS1160 



Re: mystery failure notice

2001-08-01 Thread Greg White

On Wed, Aug 01, 2001 at 10:34:27AM -0500, Virginia Chism wrote:
> I received a failure notice concerning an email I did not send.  I am
> attempting to track down how this happened and have hit a wall.  When I do
> 'tail -f /var/log/maillog' I get current activity.  If I do 'more
> /var/log/maillog' it goes all the way back to day one and I don't have time
> to slog through FOUR YEARS of maillog when what I need was a couple of days
> ago.  Is there any way to select a certain number of items to view in this
> log?
> 

This has nothing whatsoever to do with qmail. This is a basic sysadmin
question.

Hint -- grep is your friend. Look into the -A option if it exists on
your system. 

man grep

-- 
Greg White



mystery failure notice

2001-08-01 Thread Virginia Chism

I received a failure notice concerning an email I did not send.  I am
attempting to track down how this happened and have hit a wall.  When I do
'tail -f /var/log/maillog' I get current activity.  If I do 'more
/var/log/maillog' it goes all the way back to day one and I don't have time
to slog through FOUR YEARS of maillog when what I need was a couple of days
ago.  Is there any way to select a certain number of items to view in this
log?