hidasta

Crates.iohidasta
lib.rshidasta
version0.1.0
sourcesrc
created_at2020-07-10 22:32:12.440831
updated_at2020-07-10 22:32:12.440831
descriptionSimple inter-process signalling mechanism for shell scripts
homepage
repositoryhttps://github.com/soumya92/hidasta
max_upload_size
id263865
size28,404
Soumya (soumya92)

documentation

README

Hidasta

A simple cross-process signalling mechanism for shell scripts.

This is not an officially supported Google product

Why?

Sometimes you need multiple shell script processes to wait for an event.

How?

To wait:

hidasta -w $socket_path, called from any number of processes, will block until signalled.

To signal:

hidasta -s $socket_path just once. All instances currently waiting on the socket path will return, and the callers can continue.

Where?

$socket_path is the path at which a new Unix Domain Socket will be created (and removed once signalled). Only works on Unix, but can use filesystem permissions to restrict who can signal or wait.

Commit count: 5

cargo fmt