But the problem is am not geeting how to run the file in terminal by passing input file
Sorry, I don't understand what you are asking. Could you show the problem using a short, runnable piece of code so that others can see the same problem on their computers?
In the last 14 days you have posted a total of 77 nodes so far, 19 of which are root nodes (questions), and as far as I can tell, in many cases the responses to your questions have probably been unsatisfactory. If you take the time to read the following three pages, and use the suggestions from those pages when you ask questions, I think you will find that you will get much better and faster answers to your questions.