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" )
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 are environment variables?
how to separate the even and odd number generated from one file to two separate file i.e. even numbers in file1.txt and odd numbers in file2.txt
What is shell application?
What does $0 mean in shell script?
Write a shell script to check whether a number is Armstrong number or not?
What is the meaning of $1 in shell script?
How do you schedule a command to run at 4:00 every morning?
What is the use of "test" command?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
What exactly is a shell?
Explain about stdin, stdout and stderr?
Explain about the slow execution speed of shells?