autorespond:终端命令自动应答器

时间:2024-06-18 03:19:51
【文件属性】:

文件名称:autorespond:终端命令自动应答器

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-18 03:19:51

terminal command automatic response JavaScript

自动回应 终端命令自动响应 抽象的 autorespond (1)是一个小型实用程序,用于在交互式终端会话中执行命令,并在发生交互超时的情况下自动向该命令发送响应输入。 它旨在用于必须在脚本会话中执行某些交互式命令(如 shell)但它们应自动终止(如发送exit\n )的培训场景,以防受训者没有手动与其交互。 这允许以批处理和交互方式执行相同的脚本会话。 安装 $ npm install -g autorespond 用法 包含详细的使用信息。 例子 # interrupt after 10 seconds after the last user interaction $ autorespond -T 10 -r '\k{ctrl+c}\n' tail -f logfile # terminate after 30 seconds in case of no user inter


【文件预览】:
autorespond-master
----.gitignore(27B)
----package.json(2KB)
----Makefile(1KB)
----autorespond.md(3KB)
----autorespond.js(8KB)
----README.md(2KB)
----.npmignore(13B)
----eslint.yaml(3KB)

网友评论