o Remove the -V [version number] option, since our version of at(1) no
longer resembles the original. o Remove references to `you' in the manual. Submitted by: Joe Halpin <joe.halpin@attbi.com>
This commit is contained in:
parent
500c14f6af
commit
e1bc822ebe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89633
@ -673,8 +673,7 @@ main(int argc, char **argv)
|
|||||||
char *pgm;
|
char *pgm;
|
||||||
|
|
||||||
int program = AT; /* our default program */
|
int program = AT; /* our default program */
|
||||||
const char *options = "q:f:t:rmvldbVc"; /* default options for at */
|
const char *options = "q:f:t:rmvldbc"; /* default options for at */
|
||||||
int disp_version = 0;
|
|
||||||
time_t timer;
|
time_t timer;
|
||||||
|
|
||||||
timer = -1;
|
timer = -1;
|
||||||
@ -693,15 +692,15 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
if (strcmp(pgm, "atq") == 0) {
|
if (strcmp(pgm, "atq") == 0) {
|
||||||
program = ATQ;
|
program = ATQ;
|
||||||
options = "q:vV";
|
options = "q:v";
|
||||||
}
|
}
|
||||||
else if (strcmp(pgm, "atrm") == 0) {
|
else if (strcmp(pgm, "atrm") == 0) {
|
||||||
program = ATRM;
|
program = ATRM;
|
||||||
options = "V";
|
options = "";
|
||||||
}
|
}
|
||||||
else if (strcmp(pgm, "batch") == 0) {
|
else if (strcmp(pgm, "batch") == 0) {
|
||||||
program = BATCH;
|
program = BATCH;
|
||||||
options = "f:q:mvV";
|
options = "f:q:mv";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* process whatever options we can process
|
/* process whatever options we can process
|
||||||
@ -741,7 +740,7 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
|
|
||||||
program = ATRM;
|
program = ATRM;
|
||||||
options = "V";
|
options = "";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 't':
|
case 't':
|
||||||
@ -755,7 +754,7 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
|
|
||||||
program = ATQ;
|
program = ATQ;
|
||||||
options = "q:vV";
|
options = "q:v";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b':
|
case 'b':
|
||||||
@ -763,11 +762,7 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
|
|
||||||
program = BATCH;
|
program = BATCH;
|
||||||
options = "f:q:mvV";
|
options = "f:q:mv";
|
||||||
break;
|
|
||||||
|
|
||||||
case 'V':
|
|
||||||
disp_version = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
@ -782,9 +777,6 @@ main(int argc, char **argv)
|
|||||||
/* end of options eating
|
/* end of options eating
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (disp_version)
|
|
||||||
fprintf(stderr, "%s version " VERSION "\n", namep);
|
|
||||||
|
|
||||||
/* select our program
|
/* select our program
|
||||||
*/
|
*/
|
||||||
if(!check_permission())
|
if(!check_permission())
|
||||||
|
@ -10,36 +10,29 @@
|
|||||||
.Nd queue, examine or delete jobs for later execution
|
.Nd queue, examine or delete jobs for later execution
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm at
|
.Nm at
|
||||||
.Op Fl V
|
|
||||||
.Op Fl q Ar queue
|
.Op Fl q Ar queue
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl mldbv
|
.Op Fl mldbv
|
||||||
.Ar time
|
.Ar time
|
||||||
.Nm at
|
.Nm at
|
||||||
.Op Fl V
|
|
||||||
.Op Fl q Ar queue
|
.Op Fl q Ar queue
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl mldbv
|
.Op Fl mldbv
|
||||||
.Fl t Ar [[CC]YY]MMDDhhmm[.SS]
|
.Fl t Ar [[CC]YY]MMDDhhmm[.SS]
|
||||||
.Nm at
|
.Nm at
|
||||||
.Op Fl V
|
|
||||||
.Fl c Ar job Op Ar job ...
|
.Fl c Ar job Op Ar job ...
|
||||||
.Nm at
|
.Nm at
|
||||||
.Op Fl V
|
|
||||||
.Fl r Ar job Op Ar job ...
|
.Fl r Ar job Op Ar job ...
|
||||||
.Pp
|
.Pp
|
||||||
.Nm atq
|
.Nm atq
|
||||||
.Op Fl V
|
|
||||||
.Op Fl q Ar queue
|
.Op Fl q Ar queue
|
||||||
.Op Fl v
|
.Op Fl v
|
||||||
.Pp
|
.Pp
|
||||||
.Nm atrm
|
.Nm atrm
|
||||||
.Op Fl V
|
|
||||||
.Ar job
|
.Ar job
|
||||||
.Op Ar job ...
|
.Op Ar job ...
|
||||||
.Pp
|
.Pp
|
||||||
.Nm batch
|
.Nm batch
|
||||||
.Op Fl V
|
|
||||||
.Op Fl q Ar queue
|
.Op Fl q Ar queue
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl mv
|
.Op Fl mv
|
||||||
@ -75,18 +68,18 @@ or
|
|||||||
.Ar HH:MM
|
.Ar HH:MM
|
||||||
to run a job at a specific time of day.
|
to run a job at a specific time of day.
|
||||||
(If that time is already past, the next day is assumed.)
|
(If that time is already past, the next day is assumed.)
|
||||||
You may also specify
|
As an alternative, the following keywords may be specified:
|
||||||
.Em midnight ,
|
.Em midnight ,
|
||||||
.Em noon ,
|
.Em noon ,
|
||||||
or
|
or
|
||||||
.Em teatime
|
.Em teatime
|
||||||
(4pm)
|
(4pm)
|
||||||
and you can have a time-of-day suffixed with
|
and time-of-day may be suffixed with
|
||||||
.Em AM
|
.Em AM
|
||||||
or
|
or
|
||||||
.Em PM
|
.Em PM
|
||||||
for running in the morning or the evening.
|
for running in the morning or the evening.
|
||||||
You can also say what day the job will be run,
|
The day on which the job is to be run may also be specified
|
||||||
by giving a date in the form
|
by giving a date in the form
|
||||||
.Ar \%month-name day
|
.Ar \%month-name day
|
||||||
with an optional
|
with an optional
|
||||||
@ -100,7 +93,7 @@ or giving a date of the forms
|
|||||||
.Ar MMDDYY .
|
.Ar MMDDYY .
|
||||||
The specification of a date must follow the specification of
|
The specification of a date must follow the specification of
|
||||||
the time of day.
|
the time of day.
|
||||||
You can also give times like
|
Time can also be specified as:
|
||||||
.Op Em now
|
.Op Em now
|
||||||
.Em + Ar count \%time-units ,
|
.Em + Ar count \%time-units ,
|
||||||
where the time-units can be
|
where the time-units can be
|
||||||
@ -111,18 +104,18 @@ where the time-units can be
|
|||||||
.Em months
|
.Em months
|
||||||
or
|
or
|
||||||
.Em years
|
.Em years
|
||||||
and you can tell
|
and
|
||||||
.Nm
|
.Nm
|
||||||
to run the job today by suffixing the time with
|
may be told to run the job today by suffixing the time with
|
||||||
.Em today
|
.Em today
|
||||||
and to run the job tomorrow by suffixing the time with
|
and to run the job tomorrow by suffixing the time with
|
||||||
.Em tomorrow .
|
.Em tomorrow .
|
||||||
.Pp
|
.Pp
|
||||||
For example, to run a job at 4pm three days from now, you would do
|
For example, to run a job at 4pm three days from now, use
|
||||||
.Nm at Ar 4pm + 3 days ,
|
.Nm at Ar 4pm + 3 days ,
|
||||||
to run a job at 10:00am on July 31, you would do
|
to run a job at 10:00am on July 31, use
|
||||||
.Nm at Ar 10am Jul 31
|
.Nm at Ar 10am Jul 31
|
||||||
and to run a job at 1am tomorrow, you would do
|
and to run a job at 1am tomorrow, use
|
||||||
.Nm at Ar 1am tomorrow .
|
.Nm at Ar 1am tomorrow .
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
@ -191,8 +184,6 @@ If neither exists, only the superuser is allowed use of
|
|||||||
This is the default configuration.
|
This is the default configuration.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width indent
|
.Bl -tag -width indent
|
||||||
.It Fl V
|
|
||||||
Print the version number to standard error.
|
|
||||||
.It Fl q Ar queue
|
.It Fl q Ar queue
|
||||||
Use the specified queue.
|
Use the specified queue.
|
||||||
A queue designation consists of a single letter; valid queue designations
|
A queue designation consists of a single letter; valid queue designations
|
||||||
@ -317,9 +308,9 @@ and
|
|||||||
.Nm batch
|
.Nm batch
|
||||||
as presently implemented are not suitable when users are competing for
|
as presently implemented are not suitable when users are competing for
|
||||||
resources.
|
resources.
|
||||||
If this is the case for your site, you might want to consider another
|
If this is the case, another batch system such as
|
||||||
batch system, such as
|
.Em nqs
|
||||||
.Em nqs .
|
may be more suitable.
|
||||||
.Pp
|
.Pp
|
||||||
Specifying a date past 2038 may not work on some systems.
|
Specifying a date past 2038 may not work on some systems.
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
|
@ -79,12 +79,12 @@ void
|
|||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
/* Print usage and exit. */
|
/* Print usage and exit. */
|
||||||
fprintf(stderr, "usage: at [-V] [-q x] [-f file] [-m] time\n"
|
fprintf(stderr, "usage: at [-q x] [-f file] [-m] time\n"
|
||||||
" at [-V] -c job [job ...]\n"
|
" at -c job [job ...]\n"
|
||||||
" at [-V] [-f file] -t [[CC]YY]MMDDhhmm[.SS]\n"
|
" at [-f file] -t [[CC]YY]MMDDhhmm[.SS]\n"
|
||||||
" at [-V] -r job [job ...]\n"
|
" at -r job [job ...]\n"
|
||||||
" atq [-V] [-q x] [-v]\n"
|
" atq [-q x] [-v]\n"
|
||||||
" atrm [-V] job [job ...]\n"
|
" atrm job [job ...]\n"
|
||||||
" batch [-V] [-f file] [-m]\n");
|
" batch [-f file] [-m]\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user