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 command to find out today's date?
State the advantages of shell scripting?
How do we create command aliases in a shell?
Is scripting and coding the same thing?
What is Linux language details
How would you print just the 25th line in a file using smallest shell script?
Can you write a script to portray how set –x works?
Is shell scripting difficult?
Explain about debugging?
What does path stand for?
Write a script to print the first 10 elements of fibonacci series.
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.