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. check nq(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 πŸ’…βœ¨