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

How can you find out how long the system has been running?

907


What exactly is a shell?

1092


What is shell and terminal?

1014


what is tickets $ what low,medium,high priorite pls define time also

2174


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3484


What is shell geeksforgeeks?

1119


How will you emulate wc –l using awk?

1543


What is the meaning of $1 in shell script?

1123


what is info area how many types?

2778


How will you pass and access arguments to a script in linux?

1166


How do I open the shell in cmd?

1150


How do we delete all blank lines in a file?

1121


What is shift command in shell script?

1047


What are the types of script?

1185


Explain how you Automate your application using Shell scripting.

2325