Atd

From TheBeard Science Project Wiki
Revision as of 16:06, 29 February 2016 by Beard (talk | contribs) (Created page with "<pre> packages: at daemons: atd - at daemon. used for scheduling tasks. displays "at>" prompts after evoking the "at" command. configs: /var/spool/at/ - shell environment...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
packages:
	at

daemons:
	atd - at daemon. used for scheduling tasks. displays "at>" prompts after evoking the "at" command.

configs:
	/var/spool/at/ - shell environments and scheduled commands are stored in this directory.
	/etc/at.allow - users allowed to use atd. if allow/deny files do not exist, only root can use atd. this file has priority over at.deny.
	/etc/at.deny - users not allowed to use atd. create this file and leave it blank to allow all user. this id default in Fedora.

other:
	if output is not redirected to file, the output will be mailed to the user.
	FINISH COMMANDS WITH CTRL+D.

commands:
	at <time>. time can be many different phrases.
		-f <file> - read commands from file instead of stdin.
		-m - send mail to user eve if no output.
		-l - list jobs. use 'atq' command instead. root user sees all jobs.
		-d - delete jobs. use 'atrm' command instead.
		-c <job> - shows commands to be executed by job.
		time phrases:
			now
			tomorrow
			teatime (4pm)
			monday
			tue
			midnight Jul 10 2012
			noon July 5
			now + 2 days
			now + 4 hours
			now + 30 minutes
			now + 2 weeks
			9am 10/31/2012
			4:20pm 10312012
			4:20 10.31.2012

	atq - show list of pending jobs
	atrm <#> - delete job