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 default ubuntu terminal?
What is console line?
In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.
What is a scripting language simple definition?
How will you connect to a database server from linux?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
How do you know which shell I am using?
Why is used in shell scripting?
What is shell and terminal?
What are the different variables present in linux shell?
What is shell environment?
What is the way to do multilevel if-else's in shell scripting?