Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment