Written by

Sales Account Manager at InterSystems
Question David Reche · Feb 8, 2016

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?

Comments

Dmitry Maslennikov · Feb 8, 2016

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

0
David Reche  Feb 8, 2016 to Dmitry Maslennikov

log every output

Thanks

0
Eduard Lebedyuk · Feb 8, 2016

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.

0
David Reche  Feb 8, 2016 to Eduard Lebedyuk

I'll try it

Thanks

0
Erik Hemdal · Feb 9, 2016

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

0