#sockets #subdirectory #simultaneously #manage #command #process #root-directory

已删除 subsock

在每一个子目录中同时运行一个命令,并使用套接字进行管理

0.1.0 2019年8月14日

#7 in #simultaneously

GPL-3.0+

8KB
154 代码行数

subsock

在每一个子目录中同时运行一个命令,并使用套接字进行管理。

Usage: target/debug/subsock [options] PROGRAM [root_dir]

Options:
    -s, --socket NAME   set the socket path. [default: subsocket]
    -S, --no-socket     do not create a socket
    -h, --help          get help

PROGRAM will be run in parallel in every subdirectory (SUB), as SUB's owner.
A placeholder '{}' is available to PROGRAM, it will be replaced with SUB.
A socket will be created.
Sending the socket a message like 'restart SUB' will restart that SUB's process.

让你的子目录保持快乐

依赖项

~2.4–3.5MB
~55K SLoC