Find out what cron is doing.
fyi echo $PATH fyi "ls -lt | grep total" fyi "cd /var/www/apps/current && /opt/ree/bin/rake RAILS_ENV=production thinking_sphinx:index"
fyi command executes
some_command and tells you what
happened. This is useful when
some_command is executed
asynchronously, e.g. via cron, and you want to know how it
went without cluttering up your crontab with pipe redirections.
some_command it captures standard out,
standard error, and whether
some_command succeeded or failed.
These are then reported by any notifiers you have configured.
Success is defined by a 0 exit code and failure by a non-zero
The default notifier is the
Log notifier. This writes to
fyi.log in the process's home directory unless you configure
it otherwise (see below).
One other notifier is currently available: the
To provide additional notifiers, e.g. Campfire / HTTP / Jabber,
add a class in
lib/notifiers/ and configure it (see below).
fyi will automatically instantiate it, configure it and use
A notifier must:
- subclass Fyi::Notifier
- accept an options hash at initialisation (populated from configuration).
- respond to
notify(command, result, duration, output, error = '')
gem install fyi
fyi with a YAML file at
<home> is the process's home directory.
Each top-level key should be the name of a notifier class. The key-value pairs in each notifier section are passed in a hash to the notifier class at instantiation.
Please use GitHub's issue tracker.
Copyright (c) 2009 Andy Stewart (email@example.com). Released under the MIT licence.