Kill named running screen with -X only works after reattached
- by oversize
Hello
I am using ubuntu 8.04.4 and would like to start daemons like this:
screen -dmS SESSIONNAME script.sh
Then i want to kill these screens with -X like so
screen -S SESSIONAME -X kill
But, this does not work. Only if i attach and detach that session it gets kill'ed with above command. What am i doing wrong? I would like to not have to attach/deattach the session to kill it since i want to use fabric scripts that start/stop daemons remotly.
-
Thank you