-
-
Save maio/180272 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ftplib | |
import sys | |
import os | |
ftpServer = 'xxx' | |
ftpUser = 'xx' | |
ftpPass = 'xx' | |
#ftpPath = 'FileFlowStatus/' | |
ftpPath = '/' | |
def reportThis(filename, filecontent): | |
f = file(filename,'rb') | |
f.close() # Close file and FTP | |
if __name__ == '__main__': | |
reportThis('/etc/passwd', 'lala') | |
print 'tadaa' | |
--------- | |
$ python ftest.py | |
tadaa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment