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 know that your remote server is ruing smoothly or not in unix?
Differentiate between ‘ and ” quotes.
What is shell chemistry?
How to include comments in your shell scripts?
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
Please give me example of " at command , contrab command " how to use
What is an inode block?
What is another name for a bash shell script that you might see?
What are "c" and "b" permission fields of a file?
how to create purchase order
How can I send a mail with a compressed file as an attachment?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?