Write a shell script to looking at the log file to see if
the test has passed or not

Answers were Sorted based on User's Feedback



Write a shell script to looking at the log file to see if the test has passed or not..

Answer / kirtiranjan sahoo

test -f $(find /var/log/messages -name "file.log" )
echo $?
If it returns 0 means passed
if 1 means not passed

Is This Answer Correct ?    0 Yes 0 No

Write a shell script to looking at the log file to see if the test has passed or not..

Answer / guest

tail -f /var/log/messages provided all the messages are
appended to the log.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More Shell Script Interview Questions

Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.

1 Answers  


What is wc in shell script?

0 Answers  


What is MUTEX?

1 Answers  


How to write a function?

0 Answers  


What is a shell script in windows?

0 Answers  






What is the use of a shebang line?

0 Answers  


How do I run a .sh file?

0 Answers  


What is a shell script? Can you name some of its advantages?

0 Answers  


How to print all the arguments provided to the script?

0 Answers  


Write down the syntax for all the loops in shell scripting.

0 Answers  


Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.

1 Answers  


how is the oppurtunities for unix in the software

1 Answers  


Categories