如何使用shell脚本重新启动django runserver?我在屏幕上运行了django服务器。 这是我的shell脚本restartpython.sh: killall -9 python
screen -r
sleep 5
exec python manage.py runserver 0.0.0.0:8000
ctrl+a d # how to make this into
我是使用screen会话命令的新手。尝试在screen会话中尝试使用sqlplus时,sqlplus命令遇到以下错误。 $ sqlplus
sqlplus: error while loading shared libraries: libsqlplus.so: cannot
open shared object file: No such file or directory
如
目前,我正在手动执行此操作以在远程服务器中启动进程并使用屏幕保持其在后台运行。这是我做的: #On local computer:
ssh [email protected]
#On HOST:
screen
#In screen:
runbackgroundcommand # this will keep running in the foreground in screen so I