NQTAIL(1)
π nqtail β the job queue log viewer, bestie edition π
okay so picture this: you're running stuff with nq, and you just wanna watch it happen. that's nqtail, and it lives in the General Commands Manual, section 1. she's simple, she's cute, she's literally just here to follow your logs. periodt. β¨
πΈ SYNOPSIS πΈ
nqtail [-a] [-n] [-q] [job id ...]
π¦ DESCRIPTION π¦
nqtail is a simple utility for βfollowingβ the output of nq(1) jobs. that's the whole vibe. she follows. you watch. iconic behavior fr fr.
if you give her no arguments, she emits the output of the currently running and queued as-of-now jobs π . but if you do pass job ids, she uses those instead. your call, bestie.
and here's the slay part: nqtail automatically terminates after the corresponding jobs are done. no babysitting, no ctrl-c, she just knows. main character energy honestly.
so the options are as follows:
-aβ output all log files, even of already finished jobs. yes, even the ones that are done-done. she'll still show you.-nβ don't wait for new output. this one is perfect for peeking at enqueued commands π. like a lil sneak preview.-qβ only print the first line of each job output (i.e. the exec line). short and sweet. a lil taste. a sampler platter π.
π ENVIRONMENT π
NQDIRβ directory where lock files/job output resides. checknq(1) for the deets, iykyk.
β EXIT STATUS β
the nqtail utility exits 0 on success, and >0 if an error occurs. clean exits only, no drama π
.
π₯ INTERNALS π₯
okay this is the techy tea and it's actually so cool:
- on Linux,
inotify(7) is used to monitor job output. - on FreeBSD and macOS,
kqueue(2) is used. - on other operating systems, polling is used.
she adapts. she's versatile. she's everything π«Ά.
π SEE ALSO π
nq(1)nqterm(1)
π AUTHORS π
Leah Neukirchen <leah@vuxu.org> β absolute legend, no cap π.
π LICENSE π
nqtail is in the public domain β¨.
to the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.
http://creativecommons.org/publicdomain/zero/1.0/
so basically: do whatever you want with her, she's free, she's yours, go wild bestie π
and that's the whole page, babes π¦ β this beauty shipped with Debian, dated July 3, 2024. go forth and tail those logs, you've got this π β¨
π¦ where this page comes from
- alpine 3.24: nq-doc 1.0-r2 Β· CC0-1.0
- debian trixie: nq 1.0-0.2 Β· CC0-1.0
- fedora 43: nq 1.0-4.fc43 Β· CC0-1.0
- fedora 44: nq 1.0-5.fc44 Β· CC0-1.0
- nixos 26.05: nq 1.0
- nixpkgs unstable: nq 1.0
- ubuntu questing: nq 1.0-0.2
- ubuntu resolute: nq 1.0-0.2build1 Β· CC0-1.0
- ubuntu stonking: nq 1.0-0.2build1 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms