It never reaches echo "Finished", and I see the Bottle server message, which I never saw before: Bottle vx.x.x server starting up (using WSGIRefServer()). Here's the bulk of the script: chmod 700 $ restart sleep 1" The process ends as soon as ssh has finished running it and closes the session.ĮDIT: The python script is running a web service via Bottle.ĮDIT2: I also tried creating an init script that calls startup.sh and ran ssh -i -o StrictHostKe圜hecking=no "sudo service start ", but got the same behavior.ĮDIT3: Maybe it's something else in the script. However, when I run this: ssh -i -o StrictHostKe圜hecking=no "./startup.sh" When I ssh in directly and call this script, the python script continues to run in the background after I exit. I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line: nohup python3 -u &
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |