Hello I am a server support analyst for some RHAS3 linux servers.
I like to use the "screen" command to mirror standard output from an IBM UniData database, UniBasic program to a logfile. Everything that is normally sent to STDOUT is then also sent to the screen logfile. I can then monitor the contents of the logfile with a Perl script and do all sorts of things like email notifications.
How do I configure "screen" so that it starts writing to the screen logfile immediately after I have typed "screen<enter>"? In order to start writing to the log I am forced to press CTRL-A H but I want to avoid having to do this.
I have already tried configuring screen to always output to a logfile for root but my configuration does not seem to work even though it is configured according to the man page. (Or is it?)
I have configured my ~root/.screenrc as follows:
logfile flush 3
But when I log in as root then type "screen<enter>" the logfile does not get updated until I press CTRL-A H (case-sensitive).
Note: fixtransp is the dir of a script I'm writing to examine the screen.dump logfile and do some nice things.
Many Thanks In Advance