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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using shell scripts?

1113


What does path stand for?

1105


What is bash eval?

1065


Write down the syntax for all the loops in shell scripting.

1190


What is bash used for?

1060


What is the significance of $#?

1172


What is wc in shell script?

1027


What is the syntax of while loop in shell scripting?

1098


c program to display the information of given file similar to givan by the unix or linux command ls -l

2268


What is a shell environment?

1042


What is subshell?

991


What does $@ mean in shell?

1088


How do I run a powershell script?

1193


What can you do with powershell?

1198


What is bash coding?

974