Ignacio (Python remove spaces and append)의 조언에 따라 os.system
이 아닌 subprocess
을 사용하려면 아래 명령을 변환하려고합니다.os.system 대신 파이썬 서브 프로세스 사용하기
스크립트 : 내가 생각 것 os.system("/usr/local/bin/growlnotify -n emesene -a emesene -t """+title+""" -m """+text+"""""")
: subprocess.call(['/usr/local/bin/growlnotify', '-n emesene', '-a emesene', '-t ""+title+"""', '-m """+text+"""""'], shell=True)
하지만 나던 작품. 이 아이디어를 얻으려면 어떤 아이디어가 필요합니까? 파이썬 문서를보고 여기를 보았지만 알아낼 수는 없습니다!
은 BTW는 쉘 명령에 인용되지 않은 공간이 모든 곳
subprocess.call(['/usr/local/bin/growlnotify', '-n', 'emesene', '-a', 'emesene', '-t', title, '-m', text], shell=True)
이 다른 분할 에메 센 메신저 알림 시스템
는 이그나시오의 답변을 받아 들일 생각 링크 된 질문에서 –
아내는 내가 가지고 있다고 생각했습니다. –