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 |
How do you debug a script?
How do I stop script errors?
What is the difference between a variable and value?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is an sh file?
Explain about debugging?
How to make userdefined variables to available for all other shells?
write a program to display all the files from the current directory which are created in particular month
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
Where is bash history?
How can you get the value of pi till a 100 decimal places?
c program to check whether all the directories in the path exists has read and write permission