deemon:在后台运行一个进程并附加到该进程

时间:2021-05-28 12:21:22
【文件属性】:
文件名称:deemon:在后台运行一个进程并附加到该进程
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-28 12:21:22
TypeScript 恶魔 在后台运行进程并附加到该进程的实用程序 用法 npx deemon COMMAND [ARGS] 例子 npx deemon /bin/bash -c "while true; do date; sleep 1; done" Ctrl C将停止当前会话,并使进程在后台运行。 只需再次运行同一命令即可附加到它: npx deemon /bin/bash -c "while true; do date; sleep 1; done" Ctrl D将停止当前会话和后台进程。 您也可以使用--kill标志简单地--kill后台进程: npx deemon --kill /bin/bash -c "while true; do date; sleep 1; done" 或者,您可以强制重新启动后台进程,并使用--restart标志将其附加到该进程: npx deemon --
【文件预览】:
deemon-master
----package.json(506B)
----LICENSE(1KB)
----src()
--------deemon.js(41B)
--------main.ts(5KB)
----.npmignore(33B)
----tsconfig.json(164B)
----.gitignore(43B)
----README.md(1KB)
----yarn.lock(3KB)

网友评论