GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexcoder04/kangaroo: Run a command if signaled

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

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.

About

Run a command if signaled

Topics

command-linecommand-line-toolgogolangintervalkangarooshellsignals

Resources

Readme
GPL-3.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.