Thanks T3RM1NVT0R for the reply.
I did try using script command in both ways ie,
a. adding "script command" at the top of shell script :
1. It does create file called "typescript" from where shell script executed but file size is zero.
2. As soon as i run the shell script i get the message & terminates the shell script.(though this script has interactive mode so that can get user input and perform actions based on selected choices)
Script started, file is typescript
b. I tired another way as well, ie, typing script command first & then executing shell script.
1. Shell script run in interactive mode gets the options/choices and inputs from user and performs action but it doesn't store anything in "typescript" file (file size still zero)
Is there anything wrong in the way am using this script command. or is there any other way to achieve to log every actions/inputs performed during shell script execution.