nerdexam
Red_Hat

RH302 · Question #65

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

1. cat >schedule /2 /bin/echo "Hello World" >/dev/tty8 2. crontab schedule 3. Verify using: crontab -l 4. service 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…

Automation

Question

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

Explanation

  1. cat >schedule */2 * * * * /bin/echo "Hello World" >/dev/tty8
  2. crontab schedule
  3. Verify using: crontab -l
  4. service 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.

Topics

#cron scheduling#crontab#terminal output#job automation

Community Discussion

No community discussion yet for this question.

Full RH302 Practice