Jon Nelson on Thu, 20 Dec 2001 19:00:15 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] E-mailing Log Files


Not sure what is causing that, but wouldn't logrotate do what you need?

On 20/12/01 05:56 -0500, Naresh Reddy wrote:
> I am trying to e-mail myself my logfiles, created by a certain program. I
> am using IBM AIX 4.1 (from my university). And to test it out I did this
> in my crontab
> 
> * * * * * cat Net-AIM-1.21/away.log | mailx -s "Away Log"
> nyg102@psu.edu
> 
> This should send me an e-mail every minute. Now, when I check my e-mail I
> get no content in it. When I just do
> 
> % cat Net-AIM-1.21/away.log | mailx -s "Away Log" nyg102@psu.edu
> I get content, but when I do it in cron, I get no content.
> 
> What is causing this?
> Thanks
> Naresh
> http://www.personal.psu.edu/nyg102
> 
> 
> 
> ______________________________________________________________________
> Philadelphia Linux Users Group       -      http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug

-- 
*************NOTE NEW NEW ALT. EMAIL!!!!******************

Trooper Jon S. NELSON, Linux Certified Admin. (Sair/GNU)
Pennsylvania State Police
Computer Crimes Unit
Office:  610-344-4471
Page:  866-284-1603 (Toll Free)
Nextel:  610-637-0707 (Private ID 8777)
Alt. email:  jonelson@state.pa.us <------------------------

         __()___
        /  |    \
  _____/___|_____\______
 /  __     (-)      __  \
/__/  \____________/  \__\
   \__/            \__/ 

...it's a police car.

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug