repositorypackage
0.0.1
Repository: https://github.com/uda-cha/gotch_runner.git
Documentation: pkg.go.dev
# README
gotch_runner
Very simple batch runner written by golang.
If batch failed, then gotch_runner
reports it via email.
Installation
Executable binaries are available at releases.
For example, for linux x86_64,
$ wget https://github.com/uda-cha/gotch_runner/releases/download/v0.0.1-rc.1/gotch_runner_linux_amd64 -O gotch_runner
$ chmod a+x gotch_runner
Usage
Set environment variables to send email
[email protected]
[email protected],[email protected]
MAIL_USERNAME=sender_smtp_username
MAIL_PASSWORD=sender_smtp_password
MAIL_HOST=smtp.example.com
MAIL_PORT=587
run any commands you like with gotch_runner
gotch_runner /some/batch.sh your_args1 --your_args2=hoge
First argument of gotch_runner
must be executables.
So, if you want to use gotch_runner
with arbitrary environment variables, they must be located to before gotch_runner.
HOGE=1 ./gotch_runner ruby -e "puts ENV['HOGE']"