Log csession in Linux

Hello,

I am trying to log the output of csession in Linux. I try this command:

csession cache | tee myoutput.log

Although it works each new lines at screen output doesn't appear at row 1...

Any tip?

  • 0
  • 0
  • 555
  • 5
  • 0

Comments

You want to log, every outputs in csession like in cterm in windows, or just want to log every output for concrete command/routine ?

You can use script command for that

script --quiet myoutput.log
csession cache
work in terminal
hang
exit

If you want to log every command then you can enable it in SMP ->  System Administration -> Security -> Auditing ->  Configure System Events. Once there enable %System/%DirectMode/DirectMode event and every terminal command would be logged along with time and user who executed it. Audit must also be active, of course.

David, your terminal emulator might also provide logging capability. For instance, in PuTTY, look at Session > Logging on the PuTTY configuration window.