Skip to content
Friday, June 27, 2025

Webputzer.com

An odd collection of stuff.

  • Home
  • Linux Tech
  • IIS and Exchange Server
  • Software
  • Random News
  • My Life
    • Music
    • RECIPES
  • Contact

  • Home
  • Simple script to email log file (or whatever)

Simple script to email log file (or whatever)

admin
November 14, 2011 in Uncategorized - 0 Minutes

This is a simple method of emailing a log file, or any sort of text file, automatically (just add a line like this to cron) – and, obviously, you might not want to use this for any sort of very large file:

30 1 * * * cat /var/log/vsftpd.log | mail -s "VSFTPD_LOG" my_email@mydomain.net

Post navigation

Previous: Using mutt and cron to email w/attachment
Next: Mounting a secondary LVM drive, etc.

Related Posts

Trying to make a Mojave USB Installer Almost Drove Me Nuts
August 4, 2023
Upgrading an early 2009 Mac Pro’s firmware & other nightmares
July 29, 2023
Getting videos hosted on WordPress to play on an iPhone
October 1, 2019

admin

Learn More →

Leave a Reply Cancel reply

You must be logged in to post a comment.

Archives

  • June 2024
  • August 2023
  • July 2023
  • January 2021
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • March 2020
  • October 2019
  • September 2019
  • September 2018
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • September 2013
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
Proudly powered by WordPress | Theme: WalkerPress by WalkerWP.