最近搞到了一台服務器,掛一個腳本刷刷河畔在線時間。腳本隨便寫了兩下,能跑到什么時候就隨緣了
https://blog.csdn.net/philosophyatmath/article/details/80174687
運行python腳本后台執行
1 腳本后加&
python3 run.py >/dev/null 2>&1 &
2 使用nohup在后台執行命令
nohup python3 run.py >/dev/null 2>&1 &
3 使用screen執行命令
4 使用watch連續地執行一個命令
