You are not logged in.

#1 2011-07-27 12:12:38

mjc506
Member
From: Southampton, UK
Registered: 2010-04-07
Posts: 18
Website

Mulituser screen and -X stuff

I've got a server running Arch (32bit) which hosts a few gameservers, which I run inside screen so I can get to them over ssh. (And to get around some poor remote access designs). I've got a separate user for each gameserver, and each user is running its own screen(s). I would like to use yet another user (either root, or ideally, my ups user) to send these screen sessions messages, so that players know if the power's failed and to expect to be kicked off, or to tell the gameserver to shut down cleanly (for example).

 # screen -S user/sessionname -X "stuff randomtext
" 

should work, looking at the man pages, but I get

 No screen session found. 

, and of course, no output in the screen session. Standard multiuser stuff like

 screen -x user2/sessionname 

works perfectly, its just when I add the

 -X <cmd> 

in that it fails.

I'm logged into the machine directly as root, currently, with a test screen session running on a 'normal' user.

Any ideas? Am I doing something completely wrong?

Offline

Board footer

Powered by FluxBB