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 > Shell Programming and Scripting
.
google unix.com




Thread: Mailx usage
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Or create them as attachments; the mail FAQ section has a script you can use.

PS. That was quite an orgy of useless cats. The purpose of cat is to catenate files. Even though it doesn't work, I need to point out that the Useful way to write your original command would have been

Code:
cat logfile1 logfile2 logfile3 logfile4 | mailx -s 'Server logs for the day' xxx@xxx.com