PrepAway - Latest Free Exam Questions & Answers

CORRECT TEXT Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.

CORRECT TEXT
Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
cat >schedule
*/2 * * * * /bin/echo “Hello World” >/dev/tty8crontab scheduleVerify using: crontab -lservice crond
restart
Cron helps to schedule on recurring events. Pattern of Cron is:
Minute Hour Day of Month Month Day of Week Commands
0-59 0-23 1-31 1-12 0-7 where 0 and 7 means Sunday.
Note * means every. To execute the command on every two minutes */2.
To add the scheduled file on cron job: crontab filename
To List the Cron Shedule: crontab -l
To Edit the Schedule: crontab -e
To Remove the Schedule: crontab -r


Leave a Reply