pueue-send
Send input to a running pueue process
TLDR
Send input to a running command
Send confirmation to a task expecting y/N (e.g. APT, cp)
SYNOPSIS
pueue send [options]
PARAMETERS
The ID of the task to which the input should be sent.
The string that will be sent as standard input to the task.
-n, --no-newline
Do not append a newline character to the end of the string. By default, a newline character is added.
DESCRIPTION
The `pueue-send` command allows you to send input to a process that is currently managed by the Pueue task manager. This is useful for interacting with interactive programs or providing additional data to a running task. The command directly forwards the provided string as standard input (stdin) to the specified task. It's important to ensure the target program is designed to accept and process stdin. This command simplifies the process of sending dynamic data or commands to background processes managed by Pueue, enhancing the flexibility of task management. Without `pueue-send` direct interaction with running tasks would be more complex. You should be careful to use the correct task id, because pueue doesn't check that the send content is actually relevant for the task.
EXAMPLES
Example 1: Send "Hello, world!" to task 1:pueue send 1 "Hello, world!"
Example 2: Send "command" without a newline to task 2:pueue send -n 2 "command"
SEE ALSO
pueue(1), pueue-start(1), pueue-stop(1)