2021-03-30 20:35:16 +02:00
|
|
|
# pueue add
|
|
|
|
|
|
|
|
> Enqueue a task for execution.
|
|
|
|
> More information: <https://github.com/Nukesor/pueue>.
|
|
|
|
|
|
|
|
- Add any command to the default queue:
|
|
|
|
|
|
|
|
`pueue add {{command}}`
|
|
|
|
|
|
|
|
- Pass a list of flags or arguments to a command when enqueuing:
|
|
|
|
|
|
|
|
`pueue add -- {{command --arg -f}}`
|
|
|
|
|
|
|
|
- Add a command but do not start it if it's the first in a queue:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`pueue add {{[-s|--stashed]}} -- {{rsync {{[-a|--archive]}} {{[-z|--compress]}} /local/directory /remote/directory}}`
|
2021-03-30 20:35:16 +02:00
|
|
|
|
|
|
|
- Add a command to a group and start it immediately, see `pueue group` to manage groups:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`pueue add {{[-i|--immediate]}} {{[-g|--group]}} "{{CPU_intensive}}" -- {{ffmpeg -i input.mp4 frame_%d.png}}`
|
2021-03-30 20:35:16 +02:00
|
|
|
|
|
|
|
- Add a command and start it after commands 9 and 12 finish successfully:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`pueue add {{[-a|--after]}} {{9}} {{12}} {{[-g|--group]}} "{{torrents}}" -- {{transmission-cli torrent_file.torrent}}`
|
2021-03-30 20:35:16 +02:00
|
|
|
|
|
|
|
- Add a command with a label after some delay has passed, see `pueue enqueue` for valid datetime formats:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`pueue add {{[-l|--label]}} "{{compressing large file}}" {{[-d|--delay]}} "{{wednesday 10:30pm}}" -- "{{7z a compressed_file.7z large_file.xml}}"`
|