thro

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

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 9 Imported by: 0

README

thro

thro is a cli app that throttles passed command when the same command with the same args is already running.

Main purpose is to use it for throttling apps with long duration that can be called frequently, example:

#!/bin/sh

while true
do
	inotifywait -e modify -e create -e delete -e attrib -r /myfolder/
	./thro rclone -v sync /myfolder/ myprovider:/myfolder/ &
done

In this example several parallel calls will be throttled to one subcommand call and only one more deferred subcommand call when the first one will be finished

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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