I have a python script that I run by passing some arguments as environment variables:
param=1 length=5 python myscript.py
I want to run it inside a screen
. I tried screen -m param=1 length=5 python myscript.py
but this does not work, I get the error "Cannot exec param=1, no such file or directory". How can I still run this script within a screen?
screen -m bash -c 'param=1 length=5 python myscript.py'
? – pfnuesel Aug 7 '17 at 23:24