[clug] Screen command and hardcopy

Martin Pool mbp at sourcefrog.net
Mon Apr 25 22:50:27 GMT 2005


On Thu, 2005-04-07 at 15:18 +1000, Leigh Makewell wrote:
> Hi Guys.
> 
> Got a bit of a strange problem here.
> 
> I'm using screen to run some game servers. A normal game server is 
> started with this sort of screen command:
> 
> screen -c /home/.screenrc -m -d -S testserver ./etded
> 
> The problem is I want to be able to get the content of the screen so it 
> can be reported elsewhere. I know this is possible using this command 
> which should put the content into a file called 'console':
> 
> screen -S testserver -X hardcopy ./console
> 
> The strange thing is this does not work until I manually attach to the 
> screen (using screen -r testserver) and then detatch from it again.  
> Before I do this the console file is created and is empty. Does anyone 
> know why? Or how I can fix it?

That happens for me too.  Maybe the screen does not fully exist until
someone sees it?  You should ask the screen developers or look at the
faq i suppose.

-- 
Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/linux/attachments/20050426/4bfa7dff/attachment.bin


More information about the linux mailing list