at command
Why am I getting "at: bad time specification" whenever I try at command?
I tried the following and a couple of variations:
at -f myExecutable -t 10:11
Everytime I get the same error message.
May I know the exact syntax of at ? I am using Sun OS 5.9.
Regards,
Ramesh.
# 1
% man at
SYNOPSIS
at [ -c | -k | -s ] [ -m ] [ -f file ] [ -p project ] [
-q queuename ] -t time
at [ -c | -k | -s ] [ -m ] [ -f file ] [ -p project ] [
-q queuename ] timespec ...
[...]
-t time
Submits the job to be run at the time specified by the
time option-argument, which must have the format as
specified by the touch(1) utility.
% man touch
-t time
Use the specified time instead of the current time.
time will be a decimal number of the form:
[[CC]YY]MMDDhhmm [.SS]
I think you don't want to use the "-t" option at all (the first synopsis line), but instead provide a timespec (the second synopsis line).
time The time can be specified as one, two or four
digits. One- and two-digit numbers are taken to
be hours, four-digit numbers to be hours and
minutes. The time can alternatively be specified
as two numbers separated by a colon, meaning
hour:minute.
[...]
So,
% at -f myExecutable 10:11