← 返回命令列表

Linux command

pueue-send 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Send input to a running task

pueue send [task_id] "[input]"

Send a yes response to a prompt

pueue send [task_id] "yes"

Send a newline (empty line)

pueue send [task_id] ""

Send escaped sequences (interpret backslash escapes)

pueue send -e [task_id] "line1\nline2"

说明

pueue send writes text to the standard input of a running task in the pueue queue, enabling interaction with commands that prompt for user input. This is useful for confirming prompts, supplying passphrases, or feeding data to long-running tasks that the daemon supervises. The target task must have been started with stdin attached (the default for pueue add) and must currently be in the running state.

参数

-e, --escape
Interpret backslash escapes such as `\n`, `\t`, `\\`.

FAQ

What is the pueue-send command used for?

pueue send writes text to the standard input of a running task in the pueue queue, enabling interaction with commands that prompt for user input. This is useful for confirming prompts, supplying passphrases, or feeding data to long-running tasks that the daemon supervises. The target task must have been started with stdin attached (the default for pueue add) and must currently be in the running state.

How do I run a basic pueue-send example?

Run `pueue send [task_id] "[input]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -e, --escape do in pueue-send?

Interpret backslash escapes such as `\n`, `\t`, `\\`.