Jump to content

Hi, what command do I need to use to start a screen session with a python script and then detache? I'm gonna run 5 scripts and want to start them from a .sh file and maby close them from a sh file too.

I use this command to start the script python runserver.py -a google -u user -p password -l "cords" -st 12 -P port -H 0.0.0.0 -ns -t 1 -sd 10"

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/631250-python-linux-and-screen/
Share on other sites

Link to post
Share on other sites

Yea thats probably the fix, make a sh script that launches each of them and runs them in the background, and then another to stop it. How would I do this? I know python has that & to make it run in the background

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/631250-python-linux-and-screen/#findComment-8151976
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×