xref: /openbsd/usr.bin/at/atq.1 (revision db3296cf)
1.\"	$OpenBSD: atq.1,v 1.4 2003/06/10 09:12:09 jmc Exp $
2.\"
3.\" Copyright (c) 1985, 1990, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. Neither the name of the University nor the names of its contributors
15.\"    may be used to endorse or promote products derived from this software
16.\"    without specific prior written permission.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.\"     @(#)atq.1	8.1 (Berkeley) 6/6/93
31.\"
32.Dd May 13, 2002
33.Dt ATQ 1
34.Os
35.Sh NAME
36.Nm atq
37.Nd display the
38.Xr at 1
39job queue
40.Sh SYNOPSIS
41.Nm atq
42.Op Fl cnv
43.Op Fl q Ar queue
44.Op Ar name ...
45.Sh DESCRIPTION
46.Nm atq
47displays the queue of jobs, created by the
48.Xr at 1
49command, which are currently awaiting execution.
50Unless the user is the superuser, only the user's own jobs will be displayed.
51With no flags, the queue is sorted in the order that
52the jobs will be executed.
53.Pp
54The options are as follows:
55.Bl -tag -width "-q queueX"
56.It Fl c
57Sort the queue by the time that the jobs were submitted (created).
58By default,
59.Nm
60will sort the queue by the time that the jobs will run.
61.It Fl n
62Only print the total number of files that are currently in the queue.
63.It Fl q Ar queue
64Restrict output to jobs in the specified
65.Ar queue .
66.Sy a
67to
68.Sy z
69and
70.Sy A
71to
72.Sy Z .
73The
74.Sy c
75queue is the default for
76.Xr at 1
77and the
78.Sy E
79queue for
80.Xr batch 1 .
81By default,
82.Nm
83will display jobs in all queues.
84.It Fl v
85Jobs that have completed but have not yet been removed are also displayed.
86.El
87.Pp
88If a name(s) is provided, only those files belonging to that user(s) are
89displayed.
90.Sh FILES
91.Bl -tag -width /var/cron/atjobs -compact
92.It Pa /var/cron/atjobs
93directory containing job files
94.El
95.Sh SEE ALSO
96.Xr at 1 ,
97.Xr atrm 1 ,
98.Xr cron 8
99.Sh HISTORY
100The
101.Nm
102command appeared in
103.Bx 4.3 .
104