Skip to main content

All Questions

0 votes
1 answer
204 views

How can I create a .txt file containing data being generated in real-time in Linux terminal when a program is running?

I am running an AutoDock Vina program (using a Perl script) in Linux.  It generates lots of important data (regarding binding free energy of protein-ligand docked complexes).  However, I cannot save ...
Alvea Tasneem's user avatar
20 votes
1 answer
33k views

GNU Screen: How to enable or disable logging while screen is already attached?

Suppose I have an attached screen, but I forgot to execute screen -L initially. Is it possible to enable and disable the logging of the currently attached screen without re-executing screen? I know ...
Sophie's user avatar
  • 845
5 votes
1 answer
51k views

command to clean up old log files

I was trying to automate some auto cleaning of my Ubuntu System, with Cron Jobs I tryed to simplify this: sudo find /var/log -type f -name "*.1.gz" -delete sudo find /var/log -type f -name "*.2.gz" -...
DiogoSaraiva's user avatar
6 votes
3 answers
3k views

Is a command's stdout to the terminal being logged?

I am interested in learning whether a command's output to the terminal is logged somewhere. Since that can be a bit too generic, what about cat (and ccat) in specific? If I use cat on a file, will ...
alekosot's user avatar
  • 1,105
0 votes
1 answer
175 views

terminal logging doesn't complete when I close the terminal

This is the last line in my .bashrc (lines breaks inserted for readability): STARTTIME=`date +%F-%Hh-%Mm-%Ss-%N`; \ script -q -t 2> /home/USER/logs/$STARTTIME-timing.txt \ -c 'bash --rcfile ...
LanceBaynes's user avatar
  • 40.6k