Which of the following scripts would BEST accomplish this task?

A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.
Which of the following scripts would BEST accomplish this task?
A.

B.

C.

D.

comptia-exams

2 thoughts on “Which of the following scripts would BEST accomplish this task?

  1. B. send standard output and standard error to /dev/null,
    D. is the best answer, even thought script will not work

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.