diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-28 11:07:11 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-28 11:07:11 -0700 |
commit | 1cb3dd7844e4081bae7b0982057052a16609ebac (patch) | |
tree | 0a799d048ad9f2d1c4247d82042297b13e8be9c4 /lognotify.rb | |
parent | 0b05840d82b9502b74047a31aeca3d38af9583d3 (diff) | |
download | lognotify-1cb3dd7844e4081bae7b0982057052a16609ebac.tar.gz lognotify-1cb3dd7844e4081bae7b0982057052a16609ebac.tar.xz |
Add usage instructions.
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-x | lognotify.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lognotify.rb b/lognotify.rb index 61ea27c..fc96d7d 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -2,10 +2,26 @@ # # lognotify.rb # http://github.com/omp/lognotify +# Retrieve new lines from remote log files over SSH. # # Copyright 2010 David Vazgenovich Shakaryan <dvshakaryan@gmail.com> # Distributed under the terms of the GNU General Public License v3. # See http://www.gnu.org/licenses/gpl.txt for the full license text. +# +# To use, create a configuration file, such as ~/.config/lognotify/identifier, +# with the following settings: +# +# ssh_hostname = ... Hostname of SSH server. +# log_path = ... Path of log file on server. +# +# Afterwards, simply run the script with the identifier as an arugment: +# +# lognotify.rb 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 server. require 'ftools' |