Menu Base AIX Script

Hi,
I am trying to create a menu on AIX systen for operators in our office.
Please suggest how can I loop back to menu by pressing any key from a online running file. For example I can view the Database alert log file by tail -f command but how should I loop back to menu again. If I press <ctrl C> ,the log file is closed and I found myself at login prompt. I want to get back to my menu. I have provided "quit" option to at every menu to get back to login prompt.

Please advise as I am stuck on it since long.

Thanks.

I think you need the "trap" command as a wrapper around your "tail -f".
I don't know the syntax but check out UNIX / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]