how to start SCRIPT command at begin of TERMINAL?

Hello sir,
I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ????

Sharath,

Why don't you put the script command in your .profile file and try?

HTH,:cool:

Regards,

Praveen

Hello SunPraveen,
As u said I have put this "script" command in the .profile.The when I start the terminal, it became an INFINITE LOOP.I am able to "echo".Thats coming only once.....but if I write a "script" command then it is becoming an INFINITE LOOP.
Can u please tell me what to do !!!!!

ISSUE 2:
I want to handle exit command.If the user generally presses "Exit" to come out of something he is working then he will press "exit".But this is internally stopping the script that I started......Hence I want to know how to stop exit from "exiting my script command".I want to stop my script only when the user comes out of the terminal...