LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do i log GNU screen output to a file ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-log-gnu-screen-output-to-a-file-732539/)

RadishTP 06-12-2009 02:09 PM

How do i log GNU screen output to a file ?
 
Sorry stupid question here , Ive read the section on logging in the manual here but i cant get my head around this

I want to log the output every second to /mnt/md1/public/output but according to the manual the same command thats used to set the file name is used to set the delay

— Command: logfile filename
— Command: logfile flush secs

Can anyone help me out ? Thanks

jamescondron 06-12-2009 02:17 PM

If I remember correctly, isn't it just
Code:

screen -L
to enable logging?

RadishTP 06-12-2009 02:33 PM

Yeah but i need to set the log file location and the frequency it logs at , Its for a program to interprit so its important i get the log file in a public share and not in some inaccessible folder

jamescondron 06-12-2009 02:35 PM

It is logged whenever there is output. The location is ~/screenlog.*; you could use any number of options to copy it/rotate the logs.


All times are GMT -5. The time now is 06:31 AM.