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 |
I have 2 files and I want to print the records which are common to both.
Is bash an operating system?
Write the syntax for "if" conditionals in linux?
In a single command how do you run the previous command in the command prompt.
how to read systems current date and time
What is meant by dos operating system?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How to handle the delimiter unit seperator in Unix
What is the difference between a shell variable that is exported and the one that is not exported?
Explain about the exit command?
How to redirect both standard output and standard error to the same location?
How to check if the previous command was run successfully?