Screen: Difference between revisions

From Anthony Pastor Wiki Notes - Verba volant, scripta manent
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


=Cannot open your terminal '/dev/pts/0' - please check=
=Cannot open your terminal '/dev/pts/0' - please check=
  <nowiki> backup@myserver:~/nginx/20161025$ screen -r 13542
  <nowiki>backup@myserver:~/nginx/20161025$ screen -r 13542
Cannot open your terminal '/dev/pts/0' - please check. </nowiki>
Cannot open your terminal '/dev/pts/0' - please check. </nowiki>


To solve this issue:
To solve this issue:
  <nowiki>backup@myserver:~/nginx/20161025$ script /dev/null
  <nowiki>backup@myserver:~/nginx/20161025$ script /dev/null
Script started, file is /dev/null
Script started, file is /dev/null </nowiki>


And then I'm able to re-attach to this screen again. </nowiki>
And then I'm able to re-attach to this screen again.

Latest revision as of 13:03, 26 October 2016

To write the entire contents of the scrollback buffer to a file

Ctrl + A and : to get to command mode then:

hardcopy -h <filename>

Cannot open your terminal '/dev/pts/0' - please check

backup@myserver:~/nginx/20161025$ screen -r 13542
Cannot open your terminal '/dev/pts/0' - please check. 

To solve this issue:

backup@myserver:~/nginx/20161025$ script /dev/null
Script started, file is /dev/null 

And then I'm able to re-attach to this screen again.