Python 초간단 크론 중복 실행 방지
tendo 모듈 설치 easy_install tendopip install tendo 12from tendo import singletonme = singleton.SingleInstance()cs 기존 스크립트에 위 내용만 추가 해주면 되고, 인스턴스가 실행중이면 에러 발생 시키고 sys.exit(-1) 됨최신 singleton.py 스트립트는 https://github.com/pycontribs/tendo/blob/master/tendo/singleton.py 여기서 확인하면 됨 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667..
프로그래밍
2017. 7. 26. 10:59
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- File
- code
- Ansible
- configuration
- 외부링크
- command
- Windows
- 예제
- engineering
- MariaDB
- limits
- PowerShell
- 이슈처리
- Module
- Python
- Web
- check
- apache
- client
- error
- RESTful
- example
- 명령어
- Linux
- mysql
- httpd
- 코드
- monitoring
- 번역
- deview
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함