Long story short:

I have launched a pipeline under a GNU Screen and instead of typing:

./pipeline.sh &> file.log

I typed:


Logs from this pipeline are few thousand lines long and the pipeline itself need >10h to complete. Is there a way, I can still save it to a file?


If it's still in the GNU screen's buffer, you can:

  • press Ctrl + a
  • press : to enter the command mode
  • type hardcopy -h file.log

The default size of scrollback buffer in GNU screen is 1024 lines and you can check it with Ctrl + a i. It will be the first number after coordinates.

You can increase it (for future) in .screenrc file with defscrollback setting.

  • when I press Ctrl + a, there is "No other window" message popping. I don't know how much of a log is in buffer - I entered copy mode and scrolled to the top until I could scroll no more - is it the whole content of a buffer? – ltw Aug 26 '16 at 7:45
  • You are in a screen session, press Ctrl+a and immediately get a "No other window" message? Sounds rather strange. – techraf Aug 26 '16 at 7:51
  • oh, now it worked. strange. – ltw Aug 26 '16 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.