-3
이 스크립트를 작성하여 파이썬으로 텍스트 파일을 업로드했지만이 스크립트를 수정하여 5 분마다이 파일을 업로드하고 싶습니다. 어떻게해야합니까?스크립트를 반복하고 5 분마다 파일 업로드
import ftplib
import win32api
import os
sftp = ftplib.FTP('ftp.microsoft.com','test','test') # Connect
sftp.cwd("test")
fp = open('test.txt','rb') # file to send
sftp.storbinary('test.txt', fp) # Send the file
fp.close() # Close file and FTP
sftp.quit()
사용 크론 http://www.thegeekstuff.com/2011/07/cron-every-5-minutes/ – Mateusz