summaryrefslogtreecommitdiff
path: root/usr.bin/at
AgeCommit message (Collapse)Author
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.
2002-05-11at(1) is no longer setuid root, it is setgid crontab.Todd C. Miller
This means that /var/at/at.{allow,deny} must be readable by group crontab, /var/at/jobs is mode 01770, and /var/at/.SEQ is mode 0660.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-20we don't like:Mike Pechkin
o) .Pp before/after .Sh; o) .Pp before/after .Sh; o) .Nm without argument in SYNOPSIS;
2001-01-29$OpenBSD$Niklas Hallqvist
2001-01-17remove stdio code from handler, and _exit() at terminationTheo de Raadt
2000-11-17sync program usage to manual page; mpech@prosoft.org.lvTheo de Raadt
2000-11-10- Section shuffling: comply to the section ordering outlined in mdoc(7).Aaron Campbell
- Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-07-06Insert more missing .El directives. Our troff really should identify these andAaron Campbell
spit out a warning.
2000-04-23Fix thinko, check eqp for NULL, not ap; ath@algonet.seTodd C. Miller
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-04Many improvements and general cleanup/standardization.Aaron Campbell