Files
tldr/pages.zh/common/pueue-add.md

1020 B

pueue 添加

将任务加入队列以供执行。 更多信息:https://github.com/Nukesor/pueue

  • 将任何命令添加到默认队列:

pueue add {{command}}

  • 在排队时向命令传递一系列标志或参数:

pueue add -- {{command --arg -f}}

  • 添加命令但如果它是队列中的第一个则不启动它:

pueue add --stashed -- {{rsync --archive --compress /local/directory /remote/directory}}

  • 将命令添加到组并立即启动,查看 pueue group 来管理组:

pueue add --immediate --group "{{CPU_intensive}}" -- {{ffmpeg -i input.mp4 frame_%d.png}}

  • 添加命令并在命令 9 和 12 成功完成后启动它:

pueue add --after {{9}} {{12}} --group "{{torrents}}" -- {{transmission-cli torrent_file.torrent}}

  • 在经过一段延迟后添加带标签的命令,查看 pueue enqueue 以获取有效的日期时间格式:

pueue add --label "{{compressing large file}}" --delay "{{wednesday 10:30pm}}" -- "{{7z a compressed_file.7z large_file.xml}}"