1833464 Members
2633 Online
110052 Solutions
New Discussion

Re: unix shell

 
peterc_1
New Member

unix shell

Hello All,
Greetings.
I would like to capture a telnet session including commands history.
How do i do that.Thank U.
6 REPLIES 6
Sandman!
Honored Contributor

Re: unix shell

See script for details. man script

cheers!
Baldeo Prasad_3
New Member

Re: unix shell

Hi,

You can view your previous command from .sh_history file under your home directory and capture your session using script command.

Cheers!
Asif Sharif
Honored Contributor

Re: unix shell

Hi Peterc,

You can do this by downloading PUTTY software and save its history.Also you can do this by .sh_history and with the help of script command.

Regards,
Asif Sharif
Regards,
Asif Sharif
sajeer_2
Regular Advisor

Re: unix shell


Hi Peter,
Use any of these option.
Download putty or crt and enable log session option.
use script command (script -a filename)

use .sh_history fie to check command history.

Third option will give you only commands history.But other two will give you commands as well as output.
inventsekar_1
Respected Contributor

Re: unix shell

yes. just now i tried the putty logging option. its working very great.
it logs like copying the command prompt to notepad.

u can have a look at putty webpage:
http://www.chiark.greenend.org.uk/~sgtatham/putty/
Be Tomorrow, Today.
nibble
Super Advisor

Re: unix shell

you can download "putty" application which allows you to capture all your commands.
you may also set the HISTORY variable of your shell to 200 or more lines. this will consume spaces though.