gowatcha

command module
v0.0.0-...-2c4c7e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 10 Imported by: 0

README

gowatcha

Go

[WIP]

File log watcher. Search for needle/occurrence, sending email notification when found.

Usage:

$ export USER=<EMAIL> 
$ export PASSWD=<PASSWORD> 
$ go run main.go <LOG_PATH> <RECIPIENT> <NEEDLE>

# example:
# zreq3b@SF314-59  (master)$ go run main.go /home/zreq3b/go/src/github.com/zreq3b/gowatcha/assets/demo.txt sviluppo@myskin.it 123

Starting...
   __________ _       _____  ______________  _____ 
  / ____/ __ \ |     / /   |/_  __/ ____/ / / /   |
 / / __/ / / / | /| / / /| | / / / /   / /_/ / /| |
/ /_/ / /_/ /| |/ |/ / ___ |/ / / /___/ __  / ___ |
\____/\____/ |__/|__/_/  |_/_/  \____/_/ /_/_/  |_|

===================================================

Parameters:

  • LOG_PATH: absolute path to log file
  • RECIPIENT: is the email to notify
  • NEEDLE: the string occurrence we have to search

#TODO:

  1. handle parameters
  2. handle configuration settings

schema

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL