about summary refs log tree commit diff
path: root/fq.1
blob: dec179bda8970b64f653a858a32a76dd433c16a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.Dd January 31, 2021
.Dt FQ 1
.Os
.Sh NAME
.Nm fq
.Nd job queue log viewer
.Sh SYNOPSIS
.Nm
.Op Fl a
.Op Fl n
.Op Fl q
.Op Ar job\ id ...
.Sh DESCRIPTION
.Nm
is a simple utility for
.Dq following
the output of
.Xr nq 1
jobs.
.Pp
Without arguments, the output of the currently running and queued
as-of-now jobs is emitted; else the presented job ids are used.
.Pp
.Nm
automatically terminates after the corresponding jobs are done.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Output all log files, even of already finished jobs.
.It Fl n
Don't wait for new output.
Can be used to look at enqueued commands.
.It Fl q
Only print the first line of each job output
(i.e. the
.Li exec
line).
.El
.Sh ENVIRONMENT
.Bl -hang -width Ds
.It Ev NQDIR
Directory where lock files/job output resides, see
.Xr nq 1 .
.El
.Sh EXIT STATUS
.Ex -std
.Sh INTERNALS
On Linux,
.Xr inotify 7
is used to monitor job output.
On FreeBSD and macOS,
.Xr kqueue 2
is used.
On other operating systems, polling is used.
.Sh SEE ALSO
.Xr nq 1 ,
.Xr tq 1
.Sh AUTHORS
.An Leah Neukirchen Aq Mt leah@vuxu.org
.Sh LICENSE
.Nm
is in the public domain.
.Pp
To the extent possible under law,
the creator of this work
has waived all copyright and related or
neighboring rights to this work.
.Pp
.Lk http://creativecommons.org/publicdomain/zero/1.0/
.\" .Sh BUGS