Quote:
Оriginally Postеd by Bombasy
I am about to blow your mind:
Code:
screen -s /home/maz/virtual_pyservices/bin/python /home/maz/virtual_pyservices/pyservices/services.py restart
edit: shouldn't it be -s not -S?
|
it *should* have been screen -S services ./services.py restart
Except I forgot to type the NAME that should be set for the screen session
but yeah I had no idea you could start it in the virtualenv just like that - editing it into the OP.
edit: -s path_to_virtualenv_python doesn't seem to work, so cmd is screen -S services /home/maz/virtual_pyservices/bin/python /home/maz/virtual_pyservices/pyservices/services.py restart
which works fine + edited into OP.