LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-12-2009, 03:09 PM   #1
RadishTP
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
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
 
Old 06-12-2009, 03:17 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
If I remember correctly, isn't it just
Code:
screen -L
to enable logging?
 
Old 06-12-2009, 03:33 PM   #3
RadishTP
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 06-12-2009, 03:35 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Output Redirection - Trying to output to screen and file? helptonewbie Linux - Newbie 7 03-19-2009 08:05 AM
Output to Screen W/ Log? zcrxsir88 Programming 1 03-14-2008 11:29 PM
Specifying the output file for a gnu tool bnj Linux - Newbie 4 06-02-2005 08:52 AM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 03:57 AM
output file size Linux GNU gcc vs. DJGPP wsimmons Programming 5 01-27-2002 11:20 PM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration