Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



Write a shell script to looking at the log file to see if the test has passed or not..

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

Write a shell script to looking at the log file to see if the test has passed or not..

Answer / guest

tail -f /var/log/messages provided all the messages are
appended to the log.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More Shell Script Interview Questions

What is awk script?

0 Answers  


is this growing field and what is average package in this?

0 Answers  


What is the difference between a 'thread' and a 'process'?

3 Answers  


What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


What is the use of "$?" Sign in shell script?

0 Answers  


How to check if the previous command was run successfully?

0 Answers  


What is bash eval?

0 Answers  


Which shell is the best?

0 Answers  


Explain about the slow execution speed of shells?

0 Answers  


What is the use of .sh file?

0 Answers  


Explain about non-login shell files?

0 Answers  


Why is shell scripting important?

0 Answers  


Categories