Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable logging in xterm

Is it possible to turn on logging feature by default in xterm?

Lets say for example, I have example program in c that give an output in xterm everytime i ran the program from default bash terminal in linux. And I want to save the output that shows in xterm into a file everytime the programs is run.

I'm using centos7_x86_64 fyi Thanks.

like image 714
Aixeta Avatar asked Oct 24 '25 00:10

Aixeta


1 Answers

In Windowmaker:

Hold down ctrl + left click in xterm window (on the terminal text), click on "log to file".

A cool thing to do is when you're coding, log the terminal, and then when you cat the Xterm log, you see coding in fast forward. If you wanted you could video it.

Note that there are also other menus in xterm, accessible using Ctrl+Left Click, Ctrl+Middle Click, Ctrl+Right Click.

Log file will be in the directory that you launched Xterm from, and will be in the format: Xterm.log.<hostname>.<date>.<time>.log.

This is a very good question, there's no reason to mark down a question like this.

like image 160
Owl Avatar answered Oct 25 '25 14:10

Owl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!