As a part of a bigger application I am trying to create an "screen" with python using the subprocess.call()
.
Creating the screen with arguments -d -m
should create it in background and not switch to it. If I run screen -d -m -S test
on the command-line, it works as expected.
However if I try the following python-code:
cmd=["screen", "-d", "-m", "-S", "test"]
call(cmd,shell=True)
it jumps to the created screen.
Is there some difference in how call passes these arguments or runs the command?