kangaroo

command module
v0.0.0-...-cbccbff Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

README

kangaroo

Runs a command if signaled or in specific time intervals

Installation

git clone https://github.com/alexcoder04/kangaroo.git
cd kangaroo

# build a binary and run it
go build .
./kangaroo

# install to your $GOPATH
go install .

Usage

Execute on signal
kangaroo -signal 2 echo "Hello World!"

This will execute echo "Hello World!" if kangaroo gets signaled with SIGRTMIN+2. If no signal number is passed, kangaroo assumes 1. If you pass 0 as signal number, kangaroo will not listen at all.

Execute in time intervals
kangaroo -interval 3 echo "Hello World!"

This will execute echo "Hello World!" every 3 seconds. If no number is passed, kangaroo will not execute your command periodically.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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