[Python] 윈도우에서 자동 실행하기(feat. 작업 스케줄러)
·
Development/Python
파이썬 파일을 윈도우에서 매일, 자동으로 실행하려면 작업 스케줄러에 등록하면 된다. * 리눅스는 crontab! 실행할 파일 준비 작성된 코드 파일:) 배치 파일 만들기 나는 해당 파일이랑 같은 경로에 배치 파일을 생성했다. 배치 파일 생성은 간단하다. 새 파일 만들기 하고 확장자명을. bat으로 하고 파일 안에는 실행할 파일을 입력한다. python 환경변수를 설정해주지 않았다면, python 설치 경로를 입력해 준다. python 실팽할파일명.py 실행 파일 결과를 log로 보고 싶으면 아래와 같이 작성하면 된다. python 실팽할파일명.py > 저장할파일로그명.log 작업 스케줄러 등록하기 오른쪽 메뉴에서 작업 만들기를 클릭한다. 생성할 작업의 이름, 설명을 작성한다. 트리거 생성하기 트리거에서 ..
[Docker] 01. 도커 설치
·
Development/Docker
#20221215 시작 설치환경 windows 10 도커설치 아래 링크를 접속하여 docker를 다운받는다. https://www.docker.com/ Docker: Accelerated, Containerized Application Development Docker is a platform designed to help developers build, share, and run modern applications. We handle the tedious setup, so you can focus on the code. www.docker.com 설치 완료 후 재부팅하면 끝 ! 실행하면 아래와 같은 화면이 뜬다.
윈도우에서 cron 사용하기
·
Development/Linux
리눅스에서 사용하던 cron을 윈도우에 옮겨야할 일이 생겼다. 윈도우에서 cron을 실행할 방법이 있을까해서 찾아봤는데 역시나 있었다ㅎㅎ 아래 링크에서 파일을 다운받으면된다. 무료버전인 nncronlt117.exe 을 다운 받는다. nnSoft: download com_ports.spf 931 12 Dec 2008 Tests the specified COM-port and returns TRUE if the port is free or returns FALSE if the port is busy (used by some devices or applications). crc32.spf 1.4K 12 Dec 2008 Generates a string, that contains checksum (crc32) ..
PowerShell에서 IP 주소 확인하는 법
·
Development
PowerShell 에서 IP 주소 확인하는 방법 (ipconfig | findstr .*IPv4.*[0-9].\.).Split()[-1]