snootforge

chee/subsock

Run a command simultaneously in every subdirectory, and manage with a socket

subsock

Run a command simultaneously in every subdirectory, and manage with a socket.

  1. Usage: target/debug/subsock [options] PROGRAM [root_dir]
  2. Options:
  3. -s, --socket NAME set the socket path. [default: subsocket]
  4. -S, --no-socket do not create a socket
  5. -h, --help get help
  6. PROGRAM will be run in parallel in every subdirectory (SUB), as SUB's owner.
  7. A placeholder '{}' is available to PROGRAM, it will be replaced with SUB.
  8. A socket will be created.
  9. Sending the socket a message like 'restart SUB' will restart that SUB's process.

keep your subs happy