Linux 屏幕 snapshot/redirect
Linux screen snapshot/redirect
是否可以将 "snapshot" 的 运行 屏幕命令存储为文本或图像?类似于以下内容:
screen -S myscreen -d -m ...
screen-screenshot myscreen > output.1 # does this exist?
screen-screenshot myscreen > output.2
...
可以采取所谓的 "hard copy" 屏幕会话:
screen -X -S 11534.test hardcopy hc.n
这里我们发送 hardcopy hc.n
命令到屏幕会话 11534.test
。会话名称在会话列表中可用(screen -ls
)。
hardcopy
命令将当前显示的图像写入文件(特别是hc.n
)。该文件可通过寻呼机(less
、more
等)和文本编辑器查看。
是否可以将 "snapshot" 的 运行 屏幕命令存储为文本或图像?类似于以下内容:
screen -S myscreen -d -m ...
screen-screenshot myscreen > output.1 # does this exist?
screen-screenshot myscreen > output.2
...
可以采取所谓的 "hard copy" 屏幕会话:
screen -X -S 11534.test hardcopy hc.n
这里我们发送 hardcopy hc.n
命令到屏幕会话 11534.test
。会话名称在会话列表中可用(screen -ls
)。
hardcopy
命令将当前显示的图像写入文件(特别是hc.n
)。该文件可通过寻呼机(less
、more
等)和文本编辑器查看。