-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop.sh PID를 제대로 찾지 못하는 문제. #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PID=$(ps -ef | grep UpbitAutoTrade.py | head -n1 | awk {'print $2'})
부분이 종종 grep 의 pid 를 탐색하여 종료가 제대로 되지않는 문제가 있습니다.
따라서 중간에 grep -v grep 파이프를 추가하여 grep의 pid 는 탐색하지 않도록 설정하면 해당 오류를 제거할수있습니다.
코드로는 다음과 같습니다.
PID=$(ps -ef | grep UpbitAutoTrade2.py | grep -v grep | head -n1 | awk {'print $2'})
The text was updated successfully, but these errors were encountered: