[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flushing to logfile

From: Borja Soutullo
Subject: Re: flushing to logfile
Date: Tue, 21 Aug 2012 14:26:45 +0200

Thanks Bruno...
Indeed a redirect is not possible either.
In the screen I am running a propietary shell which its own commands (like sql for example)
therefore I can send the proper command via screen stuff and I want to read the output, (via log)
there is no possibility to redirect.
The only one possibility is to get the output of the log file or something like that...

2012/8/21 Bruno Cudini <address@hidden>
On Tue, Aug 21, 2012 at 01:19:24PM +0200, Borja Soutullo wrote:
> It seems that hardcopy only provides you with some information if you have
> ever accessed the terminal screen.
> I mean, I always a screen in detached mode, and if I try to hardcopy it, it
> will always be empty. As soon as I access the screen, it will not be empty
> any more...
> therefore it is not valid.

Indeed, hardcopy is not suitable

> I am just looking for a way to execute a command inside a detached screen,
> and being able to get the response. I think log is good for this, but then
> I have to wait at least one second till it is flushed... (not so optimum)

You mean like running "screen /usr/bin/whatever", and then get the
output ? In this case, you might as well use a redirect, like "screen
/usr/bin/whatever > filename.log". If you really need a screen way to do it,
I don't know how you could do

> Any solution to the log flush order?
> Any solution to get a response from a command in a detached screen?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]