The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: mailx problem
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-27-2005
djbartkow djbartkow is offline
Registered User
  
 

Join Date: Jun 2005
Location: California
Posts: 1
mailx problem

Is there a size limit on the file that can be sent using mailx?

I'm trying

mailx -s "alertlog" tome@work < /dir/my.log

and I only get a portion of the log. The newest portion of the log is not included in the mail.

Additionally, I would like the option of mailing just the last 100 lines of the file. How would I add the tail -100 syntax to the mail command.

If it matters, I'm running this from the crontab.

Thanks for any input.

Donna