Home
RSS 2.0 news feed
News Archive
Search

Public Sources
  Mercurial Repositories

Git repositories
  logproc
  ausadmin-web
  get-cert
  fat-set-uuid
  djbdns
  LS30
  xbee-controller

Projects
  Electronics
  Arduino RFID Door Lock
  XBee network controller
  Hardware
  LS30 Burglar Alarm
  Online store
  Software
  logrun
  math-trainer
  mp3cd-tools
  fakepop
  aunic-modify
  ausadmin
  sms-notify
  apt-cacher
  video-capture
  wav-fixer
  misc

TRS-80 software I wrote
  System-80 Gallery
  Zeta BBS
  Utilities
  Printer Utils
  Patches
  Operating Systems
  Library of C
  Languages
  Include files
  Hardware
  Games
  FORTRAN Programs
  File Utils
  Disk Utils
  Comms Programs
  CMD File Utils
  BASIC Programs
  Uni Assignments
  Fidonet

My PGP Key

Hats I wear
  aus.* newsgroups
  www.news-admin.org

Philosophy
  New Technology
  Ethical Internet Advertising
  Digital Freedom
  Anti-spam
  Age of plenty
  Ditch Windows

Technical
  Big Server
  Spam

Unclassified
  Zeta Internet
  Links

Your donation gives me time
to develop more cool free stuff

Stop the Australian (Anti)Vaccination Network

Logrun

Copyright (C) 1999, Nick Andrew <nick@nick-andrew.net>

This program is distributed under the terms of the GNU General Public License (see http://www.gnu.org/licenses/gpl.html)

This script is designed to be used extensively within crontabs, to run a program which produces output, and save the output, but do not output anything to STDOUT unless the program fails (i.e. returns a non-zero exit code). If the program fails, the standard output and standard error are either sent to logrun's original STDOUT (i.e. to be captured by cron and emailed to the user) or emailed to an address which is specified by the MAILTO environment variable.

Installation

Just copy logrun and logrun-clean to any convenient directory and create a directory called ${HOME}/Logrun or /var/log/Logrun (for use by root).

Make sure that logrun-clean runs every so often to delete logfiles older than an age you specify.

Feedback and improvements

If you make any improvements to this script, please send them to me at <nick@nick-andrew.net>.

Download

logrun-1.0.tar.gz (3k)
The script plus this README file.