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
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 |
Answer / guest
tail -f /var/log/messages provided all the messages are
appended to the log.
Is This Answer Correct ? | 4 Yes | 7 No |
What is the difference between scripting and coding?
How will you pass and access arguments to a script in linux?
What does echo mean in scripting?
Is shell scripting a programming language?
What does the sh command do?
What is inside a seashell?
What is meant by dos operating system?
How to debug the problems encountered in the shell script/program?
What is MUTEX?
There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A
What are the different types of shell scripting?
What are the 4 basics of OOP?