Yes you can but as its only for testing purposes i guess its easier to reattach your screen, type C-a c (meaning press ctrl-a and then just a c) to create a new "window" and start the second server there.. Hmm and i guess it also does this when using the same session name for both. I never really used this way of starting things inside a screen.
BTW C-a w will list all the windows in your screen.
Also as long as you just use a single screen(session) you can use the command line options -D -RR which will just do anything to get you a screen. (create a session if there is none, reattach the first found sesseion or maybe detach that one if necessary, like if you have the session already attached somewere)
I have a script ~/bin/screenn
- Code: Select all
#!/bin/sh
exec screen -A -D -RR "${@}"
that is imo very useful to handle screen. The $@ is replaced with command line options so you could also use the -s to name the session if needed or add other options..