Crates.io | hidasta |
lib.rs | hidasta |
version | 0.1.0 |
source | src |
created_at | 2020-07-10 22:32:12.440831 |
updated_at | 2020-07-10 22:32:12.440831 |
description | Simple inter-process signalling mechanism for shell scripts |
homepage | |
repository | https://github.com/soumya92/hidasta |
max_upload_size | |
id | 263865 |
size | 28,404 |
A simple cross-process signalling mechanism for shell scripts.
This is not an officially supported Google product
Sometimes you need multiple shell script processes to wait for an event.
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.
$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.