Linux之创建启动脚本
#!/bin/bash #app=main.py # add execute right chmod +x $app # kill previous process ps -ef | grep $app | grep -v grep | awk '{print $2}' | xargs -i kill {} # start extract data process python main.py 2>&1
-----------------------------------------------------------------------------------------------------------------------------------------