From a73f9f83ccd4fc6be87753f689ddb01e2788c42d Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 27 Sep 2010 19:41:43 -0700 Subject: Add more information and instructions. --- lognotify.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lognotify.sh') diff --git a/lognotify.sh b/lognotify.sh index 6c16150..e92ff02 100755 --- a/lognotify.sh +++ b/lognotify.sh @@ -9,6 +9,22 @@ # # Retrieve additions to remote log files via SSH. Log files are cached locally # and only new lines are fetched from the server. +# +# To use, create a configuraton file, such as ~/.config/lognotify/identifier, +# with the following settings: +# +# SSH_OPTIONS="" Options for SSH command. [Can be empty.] +# SSH_HOSTNAME="" Hostname of SSH server. +# LOGPATH="" Path of log file on server. +# +# Afterwards, simply run the script with the identifier as an argument: +# +# lognotify.sh identifier +# +# During the initial run, a cache file will be created and all lines will be +# retrieved. On any subsequent runs, only new lines will be retrieved and +# outputted, as well as appended to the cache file, which should be identical +# to the log file on the sever. # Location of the cache and configuration directories. CACHEDIR="${HOME}/.cache/lognotify" -- cgit v1.2.3-70-g09d2