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 to include comments in your shell scripts?
What are the 4 basics of OOP?
Write a shell script to get current date, time, user name and current working directory.
What is difference between bash and shell?
What is egrep?
write a shell program to check wheather a given string is pallindrome or not?
Write down the syntax for all the loops in shell scripting.
What is a shell in operating system?
How to open a read-only file in the shell?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is an inode block?
Explain about non-login shell files?