I want to end the bash script when the file read by the bash Script is over. Actually I am making a project of automation of Universal Testing machine using Sensors. I have done the programming of it and I am Putting my code in the following link http://bit.ly/13s4WBu
Now the problem is when I am running the script ttyUSB.sh it does not end automatically whent the break condition is applied to the ttyusb0 in arduino. To know more about arduino visit the following page http://en.wikipedia.org/wiki/Arduino
Now I need the help so that I can end the bash script automatically.
If you need more help then I can also give that.