모니터링을 할 경우 어떤한 조건이 Fail 발생할 때, 비프음을 발생시켜 간단하게 모니터링을 할 수 있다.
DOCS : https://docs.python.org/3/library/winsound.html?highlight=winsound#module-winsound
import winsound as ws
def beepsound():
freq = 2000 # range : 37 ~ 32767
dur = 1000 # ms
ws.Beep(freq, dur) # winsound.Beep(frequency, duration)
print(beepsound())
'Python > Python for Windows' 카테고리의 다른 글
[Python] win32evtlog 모듈을 이용한 윈도우 이벤트 로그 추출 (0) | 2018.05.20 |
---|---|
[Python] 리스트의 index를 활용하여 문자열 분리 (0) | 2018.05.13 |
[Python] subprocess 모듈과 DOS ping 명령어를 이용한 핼스 체크 (0) | 2018.05.09 |
[Python] sys모듈로 입력인수 처리하기 (0) | 2018.05.07 |
[Python] Check shared folder of Windows operating system using subprocess and regular expression (0) | 2018.05.04 |
[Python] SQLite 메모리DB를 활용한 파이썬 IIS 로그파서 (0) | 2018.04.27 |
[Python] xcopy DOS명령어를 조합한 증분 백업 (0) | 2018.04.20 |
[Python] 윈도우 서버에서 SMTP서버로 메일 발송 (2) (0) | 2018.04.18 |