diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-27 19:41:43 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-27 19:41:43 -0700 |
commit | a73f9f83ccd4fc6be87753f689ddb01e2788c42d (patch) | |
tree | e39454caac74230251361d5e0affbfee99f7b2f1 | |
parent | 455e6cdacb4da044a3bfc85a162467d3e797ef51 (diff) | |
download | lognotify-a73f9f83ccd4fc6be87753f689ddb01e2788c42d.tar.gz lognotify-a73f9f83ccd4fc6be87753f689ddb01e2788c42d.tar.xz |
Add more information and instructions.
-rwxr-xr-x | lognotify.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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" |