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 awk script?
is this growing field and what is average package in this?
What is the difference between a 'thread' and a 'process'?
What is the equivalent of a file shortcut that we have a window on a linux system?
What is the use of "$?" Sign in shell script?
How to check if the previous command was run successfully?
What is bash eval?
Which shell is the best?
Explain about the slow execution speed of shells?
What is the use of .sh file?
Explain about non-login shell files?
Why is shell scripting important?