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 |
How do I stop script errors?
What is the fastest scripting language?
When you login to a c shell, which script would be run first?
What is the meaning of $1 in shell script?
What is difference between bash and shell?
What is shell scripting?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is the first line in every perl script called?
wats the she bang statment with syntax?
What are the advantages of shell script?
What language is bash written in?
What are the different communication commands available in the shell?