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 |
Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.
What is wc in shell script?
What is MUTEX?
How to write a function?
What is a shell script in windows?
What is the use of a shebang line?
How do I run a .sh file?
What is a shell script? Can you name some of its advantages?
How to print all the arguments provided to the script?
Write down the syntax for all the loops in shell scripting.
Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.
how is the oppurtunities for unix in the software