15 Apr 2014, 04:26
Generic-user-small

Viktor Ageyev (8 posts)

on page 253 (beta 6):

screen -dmS mcserver java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui

what does it mean “-dmS” ? and it does not work …

in screen tutorial on http://www.gnu.org/software/screen/manual/screen.html#Getting-Started :

-d -m

Start screen in detached mode. This creates a new session but doesn’t attach to it. This is useful for system startup scripts

should it be:

screen -d -m -S mcserver …

?

And just

screen -S mcserver java -jar craftbukkit.jar nogui

works on my server, but “-dmS” not

15 Apr 2014, 16:44
Userpic90_pragsmall

Carl Cravens (8 posts)

‘screen’ (at least some implementations) can be picky about separating flags. (Which is atypical for modern Unix/Linux command-line programs.)

But ‘screen -dmS’ works on my system (Debian Linux 7, “wheezy”), as does ‘screen -d -m -S’.

When you say “does not work”… are you verifying that screen isn’t actually running? “Detached” means that it’s in the background and you don’t see what’s running.

To see existing screen sessions:

screen -ls

To reattach to a detached screen if it’s the only one you have running…

screen -r

To reattach to a specific screen if there is more than one…

screen -r

where is the screen identifier displayed by 'screen -ls'.

15 Apr 2014, 20:03
Andy-talking_pragsmall

Andrew Hunt (116 posts)

Viktor – what operating system are you on where -dmS doesn’t work?

/\ndy

16 Apr 2014, 15:00
Generic-user-small

Viktor Ageyev (8 posts)

When you say “does not work”… are you verifying that screen isn’t actually running?

Yes, using screen -ls

16 Apr 2014, 15:00
Generic-user-small

Viktor Ageyev (8 posts)

Viktor – what operating system are you on where -dmS doesn’t work?

Ubuntu 13.10 (GNU/Linux 3.11.0-19-generic x86_64)

Screen version 4.00.03jw4 (FAU) 2-May-06

16 Apr 2014, 20:16
Andy-talking_pragsmall

Andrew Hunt (116 posts)

I would consider that a bug in that version of screen, but I’ll change the book to use separate arguments anyway, thanks.

  You must be logged in to comment