Thank you for your response.
I thought that there is way to stop and start the script automatically. But now I understand that once I stop the script I cannot started it again unless I create another script that will launch it for me, which I really don't want to do. Let me try to explain the problem that I am having maybe there is another way.
I have script that opens a connection with a modem, which waits for a ring. Another user calls the modem and starts sending messages. The modem echoes the message back confirming that it received it. If there is no activity for 30 seconds I want to reset everything and restart the modem connection. I am doing this now by using clear command and sending disconnect command to modem. But when I start the modem the terminal screen is blank and I don't see the initialization string and OK message unless I manually stop and start the script. Basically whatever stop/start button is doing, I would like do it automatically thru the script. Is there a way do that? Or do I need to write another script to start? If I do what is the command to start the script?
Thank you again.