Home
Flashcards
Preview
script
Home
Get App
Take Quiz
Create
what allows you to define one ore more commands to be executed at a future time
at
relies on a background process
atd
Allows you to define one or more commands to
be executed repeatedly at intervals that you designate
crontab
relies on a background process
crond
what two methods check once per minute to see if there are any scheduled jobs
at and crontab
at –f <filename> <time specification>
now + 5min
run 5 min after the command is entered
4pm+ 5 days
run at 4pm and 5 days from now
noon nov21
run at noon on nov 21
what must be turned on at the scheduled job to run
the computer
what is the 2 commands to list all queued job
atq and at -l
how to cancel a submitted job
atrm at -d
what is the command to execute commands automatically
crontab
with red hat linux what cant you specify
a specific time
what does this show /etc/crontab
the file that specifies what files are to run when
crontab variables
shell
defines which shell is to be used when executing the commands and scripts
path
defines the directories where commands are located
home
defines the working directory
mailto
defines the user on the linux system that will receive an email message contains the output from all cron job defined in the file
cron jobs
min of the hour
0 to 59
hour of the day
0 to 23
day of the month
0 to 31
10 * * * * du /home > tmp/disk_usage
Executes the du /home command at 10 minutes after the hour, every hour of every day.
15 2 1 * * who > tmp/current_users
Executes the who command on the first day of each month at 2:15 a.m.
0 1 1,10,20 * * du / home >> tmp/disk_usage
Executes the command on the 1st, 10th and 20th of every month at 1:00 a.m.
Submit the file to the crond daemon using the
crontab
lists the jobs for your user account
crontab -l
removes your crontab file
crontab -r
opens the crontab file in a text editor for making changes
crontab -e
what prevents file-locking conflicts
crontab -e
Author
Tjr31
ID
52663
Card Set
script
Description
script 4
Updated
2010-12-01T18:55:38Z
Show Answers
Home
Flashcards
Preview