D
D
derri2015-05-19 15:47:55
linux
derri, 2015-05-19 15:47:55

How to redirect the output of a program running under screen?

Hello!
There was such a question.
There is one software that runs on the server (CentOS 6.5), runs under screen
#screen -ls
There are screens on:
12403.openas2 (Detached)
Writes a lot of good things under the screen
Please tell me how to redirect its output to the terminal or to file and is it possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Yakovenko, 2015-05-19
@Xazzzi

Perhaps you should pay attention to another software - supervisorctl. This is essentially a very smart screen with built-in logs, monitoring of your software crashes and much more.
Well, or a simpler case - nohup, which also knows how to write logs to a file.

Z
zorruch, 2015-05-19
@zorruch

maybe it will help - www.opennet.ru/docs/RUS/bash_scripting_guide/c1162...

A
athacker, 2015-05-21
@athacker

Well, besides output redirection, there is also a script utility.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question