CMag Asked: 2011-10-05 08:13:41 +0800 CST2011-10-05 08:13:41 +0800 CST 2011-10-05 08:13:41 +0800 CST tail -100 catalina.out | mail to somewhere 772 trying to spit out last 100 lines of catalina.out and email them to myself. Can someone suggest a quick oneliner on how to do this? I can only come up with something like: tail -100 catalina.out | /bin/mail -s blah myemailaddress linux scripting 2 Answers Voted Best Answer Scott Pack 2011-10-05T08:49:10+08:002011-10-05T08:49:10+08:00 I would recommend using tail -100 catalina.out | /bin/mail -s blah myemailaddress I think you should find the results handy. user9517 2011-10-05T08:41:32+08:002011-10-05T08:41:32+08:00 What you've got will work just fine.
I would recommend using
tail -100 catalina.out | /bin/mail -s blah myemailaddress
I think you should find the results handy.
What you've got will work just fine.