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

How do I stop script errors?

0 Answers  


What is the fastest scripting language?

0 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


What is the meaning of $1 in shell script?

0 Answers  


What is difference between bash and shell?

0 Answers  


What is shell scripting?

0 Answers  


Suppose you execute a command using exec, what will be the status of your current process in the shell?

0 Answers  


What is the first line in every perl script called?

0 Answers  


wats the she bang statment with syntax?

3 Answers  


What are the advantages of shell script?

0 Answers  


What language is bash written in?

0 Answers  


What are the different communication commands available in the shell?

0 Answers  


Categories