summaryrefslogtreecommitdiff
path: root/usr.bin/at
AgeCommit message (Collapse)Author
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-01-03missing word; from Jason FilleyJason McIntyre
2007-09-05Change some variables to their proper type size_t.Moritz Jodeit
ok millert@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-18Fix typo introduced in seconds parsing. From Tim van der Molen.Todd C. Miller
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-05-24If century not specified used the current one instead of aassuming 2000.Todd C. Miller
2007-05-23Fix cut and pasto, seconds value is now stored in dot, not p.Todd C. Miller
2007-05-23Set tm_sec to 0 if no seconds were specified by the timespec (-t) arg.Todd C. Miller
2007-05-23Sanity check the time argument specified by the -t argument. SomeTodd C. Miller
checks adapted from date(1). Now prevents scheduling jobs in the past just like the standard (ie: not -n) at(1) date parsing.
2007-03-26indicate that -l takes an optional argument;Jason McIntyre
whilst here, clean up the -cr descriptions, add some refs to SEE ALSO, and merge the first two synopses into one based on a diff from J.C. Roberts help/ok millert
2006-04-26Cleanup, remove an unused var, use an int to store argc instead of a char,Chad Loder
makes lint a bit happier. OK deraadt
2006-03-22plug an fd leak and closedir() two directories;Robert Nagy
ok otto@
2005-10-25dont' -> don't in comments;Jason McIntyre
from ray lai;
2005-09-30deploy .An -nosplit; ok jmcJared Yanovich
2005-06-23- at(1) synopsis: -r expects a `job' arg, not a timespecJason McIntyre
- remove description of -v: it is only for use with atq(1), and is correctly documented there - sync usage() - correctly format synopis for atrm(1)
2004-06-17Remove trailing whitespace and, for printf, uid/gid are unsignedTodd C. Miller
2004-06-03Verify that argc > 0 before trying to use argv and mark usage as __dead.Todd C. Miller
from Dmitry V. Levin
2003-10-20typos from Jared Yanovich, slightly ammended;Jason McIntyre
2003-09-26better realloc. ok deraadt@Ted Unangst
2003-07-23Add '\n' to error messages in "atrm" mode.Mike Pechkin
millert@ ok
2003-07-02protosTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-04the buffer to getcwd(3) should be PATH_MAX in size, not MAX_FNAMEAnil Madhavapeddy
to avoid unnecessary truncation millert@ ok
2003-03-14This goes with the at.c changeTodd C. Miller
2003-03-13Stash uid and mode in struct at so we don't need to pass around aTodd C. Miller
struct statbuf *. Fixes a bug where atq reports all jobs as being owned by the owner of the last job in the queue. This is fallout from when I added sorting as per the historic BSD atq.
2003-03-03Add back fix from 1.32 that was lost in latest syncTodd C. Miller
2003-02-20Sync with ISC cron-current + my at(1) integration.Todd C. Miller
The at(1) code is now more tightly integrated into the cron codebase.
2003-02-19Move contents of /var/at into /var/cron since at is now intergrated intoTodd C. Miller
cron. When ISC cron 5.0 is out the integration will be even tighter. Also rename /var/cron/{allow,deny} -> /var/cron/cron.{allow,deny} for consistency with POSIX and at.{allow,deny} and install an empty cron.deny file (as we do at.deny) since crontab will require this in the near future for POSIX compliance. After a "make build" you can update your system as follows: # mv /var/at/* /var/cron # mv /var/cron/jobs /var/cron/atjobs # mv /var/cron.allow /var/cron/cron.allow # mv /var/cron.deny /var/cron/cron.deny # rm -rf /var/at # kill `cat /var/run/cron.pid` ; cron
2003-02-19sequence file is no longer usedTodd C. Miller
2003-02-19Kill an errant space.Todd C. Miller
2003-02-18Use the SUN_LEN macro to set sun_len correctlyTodd C. Miller
2003-02-17Missing #include <limits.h>Todd C. Miller
2003-02-14man page is under same license as the programTodd C. Miller
2003-01-23'conjunction' typosAnil Madhavapeddy
2003-01-02Fix 'at -r' crash.Mike Pechkin
While loop in process_job() jobs[i] will contain NULL. Skip mess. millert@ ok
2002-11-20Add missing increment in newjob() when there is a time collision.Todd C. Miller
2002-07-15Move atrun(8) functionality into cron(8) proper. This fixes theTodd C. Miller
long-standing annoyance that atrun's granularity is 10 minutes. Most at jobs run with a 1 minute granularity. Jobs submitted via "at now" or "batch" will run immediately. Includes a rewritten cron(8) man page. at(1) will be integrated more closely into cron at a future date. Upgrading notes: the atrun job in root's crontab should be removed. the /var/at/spool directory is no longer used
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-04spelling; raj@cerias.purdue.eduTheo de Raadt
2002-05-14Major changes:Todd C. Miller
Job names are now "runtime.queue" where runtime is when the job will run in Unix time format. This is what SysV at does and allows us to nuke the .SEQ file. Historic BSD options for atq and atrm are now implemented; atq and atrm get their own man pages. At no longer does anything with the -v flag. We print the execution time when jobs are submitted so there is no need. Most *scanf() usage is gone (one remains in atrun). Better sanity checks in atrun. Random style/cleanup. With these changes we have the best of both worlds; POSIX compliance with the traditional BSD features.
2002-05-13Execute job with user's shell, not /bin/sh as per POSIX and historicTodd C. Miller
BSD behavior. Add some bash-specific and ssh agent variables to the no_export list. Print the message after job submission the way POSIX wants. When cat'ing or removing non-existent jobs, exit with an error if the specified job does not exist.
2002-05-13Only print usage for the command that was run (at, atq, atrm, batch), notTodd C. Miller
all four. Also differentiate between the touch(1) style time as time_arg and the at(1) style time as timespec (which is what SUS3 does). Instead of referring to the touch time format as POSIX time, reference touch. This is what SUS3 does and it is what users will know.
2002-05-11Pass -Wall and use ANSI function headers.Todd C. Miller
2002-05-11Add POSIX -r and -t flags from FreeBSD. The old -d option is nowTodd C. Miller
deprecated and no longer documented. Also, use __progname instead of examining argv and clean up a few minor warnings.
2002-05-11sort command line options lexigraphically and remove lies about lookingTodd C. Miller
in utmp (our getlogin() doesn't look at utmp).
2002-05-11Kill -V (version) option since it has no relation to reality any more.Todd C. Miller
2002-05-11Use O_EXCL (not O_TRUNC) when creating new job file. If there is aTodd C. Miller
pre-existing file with the same name this is indicative of a problem with the sequence file and so it makes sense to treat it as an error.