PrepAway - Latest Free Exam Questions & Answers

Which two statements about the UNIX script are true?

Which two statements about the UNIX script are true? (Choose two.)
#!/bin/sh
tc=1
while [ $tc -le 10 ]
do
#/opt/trapSender -e 1.3.6.1.6.3.1.1.5.1 -s 1 -g 1 -i 10.1.1.1 -D 10.1.1.5 -n 10
tc=`expr $tc + 1`

echo “tc:$tc\n”;
sleep 1
done

PrepAway - Latest Free Exam Questions & Answers

A.
This is a Perl script.

B.
The command /opt/trapSender will execute 10 times.

C.
Within the while loop, the script will pause and wait for one second.

D.
Within the while loop, the script will pause and wait for one minute.

E.
The last number to be printed to the screen when running this script is 11.


Leave a Reply