SlideShare a Scribd company logo
Process scheduling commands
The UNIX system provides facilities to schedule
jobs to be executed at a specified date and time.
Few process scheduling commands are :
at command
• This command is used to execute UNIX commands at
a future date and time.
• Once the commands are submitted, this command
displays the details regarding the job-id, date and
time at which the command must be executed.
options
-f can be used to specify a file as an argument to the
at command
-l can be used to display different jobs submitted
by user
-r removes a job from the queue, where job-id
must be specified as an argument
batch command
• This command does not need the user to specify
the time at which it should be executed.
• Therefore jobs submitted are executed when the
system load is less and is relatively free.
• The extension .b is added to the job id
indicating that this job is submitted using the
batch command.
The cron daemon
• It is asleep most of the time.
• It wakes up once in every minute and checks the
crontab file for any job to be executed during that
minute.
• The crontab containing one or more lines must be
created in a specific format.
• Each line here contains 6 fields, with each field
separated by a blank.
• The first field specifies minutes from 0-59.
• The second field specifies hour in 24 – hour format.
• The third field specifies day of month from 1-31.
• The fourth field specifies the month from 1-12.
• The fifth field specifies the day of week from 0-6,
where 0 is Sunday.
• The sixth field contains the command line to be executed.
day of
month
month
hour
minute
day of
week
command to
be executed
• An asterisk in a crontab represents all possible
values.
• For ex.,
40 9 * * * studdet.sh
when executed, runs the file studdet.sh at 9:40
every day.
The crontab command
• Though at and batch commands are powerful
scheduling command, once submitted, they will
execute the jobs only once.
• Next the jobs will have to be rescheduled if they have
to be executed again.
• The crontab command has great advantage over at and
batch in this respect.
• It can execute a submitted job every day for years
together, without user interference.
• When crontab command is executed, the file contents are
automatically transferred to the crontabs directory
(/var/spool/cron/crontabs)
• -l option is used to display the contents of the crontab file
• -r option is used to remove a submitted file.
• Every user has only one crontab file.
• Two files cron.allow and cron.deny exist, to decide the
users to be allowed and to be denied access the crontab
command.

More Related Content

PDF
Linux talk | scheduled tasks
PDF
Linux fundamental - Chap 15 Job Scheduling
PPT
CRON SYSTEM.ppt is powerpoint presentation
PDF
Process Scheduler and Balancer in Linux Kernel
PPTX
Scheduling in Linux and Web Servers
PDF
Schedule Future Tasks - RHCSA (RH134).pdf
PPTX
Daemons
PPTX
Introduction To Unix.pptx
Linux talk | scheduled tasks
Linux fundamental - Chap 15 Job Scheduling
CRON SYSTEM.ppt is powerpoint presentation
Process Scheduler and Balancer in Linux Kernel
Scheduling in Linux and Web Servers
Schedule Future Tasks - RHCSA (RH134).pdf
Daemons
Introduction To Unix.pptx

Similar to Process scheduling commands in unix.pptx (20)

DOCX
Linux crontab
PPTX
PPT
Linux operating system by Quontra Solutions
PPTX
UNIX Notes
PDF
Linux kernel development ch4
PPTX
Understanding Sitecore Schedulers: Configuration and Execution Guide
PPT
Lecture1
ODP
PPTX
Basics of unix
PPTX
Unit - 5 Pipelining.pptx
PPTX
Process scheduling & time
PPTX
Unix training session 3
PPTX
PPTX
Os lectures
PPTX
Linux architecture
DOCX
CIS3110 Winter 2016CIS3110 (Operating Systems) Assig.docx
PPTX
various shell commands in unix operating system.pptx
PPT
Tn6 facility+layout
PPT
Tn6 facility layout
PPT
PowerPoint_merge.ppt on unix programming
Linux crontab
Linux operating system by Quontra Solutions
UNIX Notes
Linux kernel development ch4
Understanding Sitecore Schedulers: Configuration and Execution Guide
Lecture1
Basics of unix
Unit - 5 Pipelining.pptx
Process scheduling & time
Unix training session 3
Os lectures
Linux architecture
CIS3110 Winter 2016CIS3110 (Operating Systems) Assig.docx
various shell commands in unix operating system.pptx
Tn6 facility+layout
Tn6 facility layout
PowerPoint_merge.ppt on unix programming
Ad

More from Priyadarshini648418 (12)

PPTX
DBMS_Online database management sys.pptx
PPTX
3. Context of a process in a unix .pptx
PPTX
1 Data Manipulation, data mining techniq
PPT
Applied artificial intelligece of pg.ppt
PPT
AAI expert system and their usecases.ppt
PPTX
deep learn about blood vessel auto1.pptx
PPT
Applied Artificial Intelligence presenttt
PPTX
Nest_Dictionaries in python coding1.pptx
PPTX
Gender Recognition in the voice PPT.pptx
PPTX
Data Science Machine Lerning Bigdat.pptx
PPTX
2. UNIX OS System Architecture easy.pptx
PPTX
Unix_Introduction_BCA.pptx the very basi
DBMS_Online database management sys.pptx
3. Context of a process in a unix .pptx
1 Data Manipulation, data mining techniq
Applied artificial intelligece of pg.ppt
AAI expert system and their usecases.ppt
deep learn about blood vessel auto1.pptx
Applied Artificial Intelligence presenttt
Nest_Dictionaries in python coding1.pptx
Gender Recognition in the voice PPT.pptx
Data Science Machine Lerning Bigdat.pptx
2. UNIX OS System Architecture easy.pptx
Unix_Introduction_BCA.pptx the very basi
Ad

Recently uploaded (20)

PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Computer network topology notes for revision
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PDF
Mega Projects Data Mega Projects Data
PDF
annual-report-2024-2025 original latest.
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
Business Analytics and business intelligence.pdf
PPT
Quality review (1)_presentation of this 21
Supervised vs unsupervised machine learning algorithms
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
oil_refinery_comprehensive_20250804084928 (1).pptx
ISS -ESG Data flows What is ESG and HowHow
Galatica Smart Energy Infrastructure Startup Pitch Deck
STUDY DESIGN details- Lt Col Maksud (21).pptx
Computer network topology notes for revision
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Data_Analytics_and_PowerBI_Presentation.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Mega Projects Data Mega Projects Data
annual-report-2024-2025 original latest.
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Business Analytics and business intelligence.pdf
Quality review (1)_presentation of this 21

Process scheduling commands in unix.pptx

  • 1. Process scheduling commands The UNIX system provides facilities to schedule jobs to be executed at a specified date and time. Few process scheduling commands are :
  • 2. at command • This command is used to execute UNIX commands at a future date and time. • Once the commands are submitted, this command displays the details regarding the job-id, date and time at which the command must be executed. options -f can be used to specify a file as an argument to the at command -l can be used to display different jobs submitted by user -r removes a job from the queue, where job-id must be specified as an argument
  • 3. batch command • This command does not need the user to specify the time at which it should be executed. • Therefore jobs submitted are executed when the system load is less and is relatively free. • The extension .b is added to the job id indicating that this job is submitted using the batch command.
  • 4. The cron daemon • It is asleep most of the time. • It wakes up once in every minute and checks the crontab file for any job to be executed during that minute. • The crontab containing one or more lines must be created in a specific format. • Each line here contains 6 fields, with each field separated by a blank.
  • 5. • The first field specifies minutes from 0-59. • The second field specifies hour in 24 – hour format. • The third field specifies day of month from 1-31. • The fourth field specifies the month from 1-12. • The fifth field specifies the day of week from 0-6, where 0 is Sunday. • The sixth field contains the command line to be executed. day of month month hour minute day of week command to be executed
  • 6. • An asterisk in a crontab represents all possible values. • For ex., 40 9 * * * studdet.sh when executed, runs the file studdet.sh at 9:40 every day.
  • 7. The crontab command • Though at and batch commands are powerful scheduling command, once submitted, they will execute the jobs only once. • Next the jobs will have to be rescheduled if they have to be executed again. • The crontab command has great advantage over at and batch in this respect. • It can execute a submitted job every day for years together, without user interference.
  • 8. • When crontab command is executed, the file contents are automatically transferred to the crontabs directory (/var/spool/cron/crontabs) • -l option is used to display the contents of the crontab file • -r option is used to remove a submitted file. • Every user has only one crontab file. • Two files cron.allow and cron.deny exist, to decide the users to be allowed and to be denied access the crontab command.