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 egrep?
How can you find out how long the system has been running?
What is the way to do multilevel if-else's in shell scripting?
How does shell scripting work?
How to get the 3rd element/column from each line from a file?
What does debug script mean?
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
Which is best institute for testing tool?
what is the difference between sh & bash shell?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is the use of echo in shell script?
How to group the commands in shell scripting?