Guest User

Untitled

a guest
Mar 12th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import ftplib
  2. import sys
  3. import os
  4.  
  5. ftpServer = 'xxx'
  6. ftpUser = 'xx'
  7. ftpPass = 'xx'
  8. #ftpPath = 'FileFlowStatus/'
  9. ftpPath = '/'
  10.  
  11. def reportThis(filename, filecontent):
  12. f = file(filename,'rb')
  13. f.close() # Close file and FTP
  14.  
  15. if __name__ == '__main__':
  16. reportThis('/etc/passwd', 'lala')
  17. print 'tadaa'
  18.  
  19.  
  20.  
  21. ---------
  22. $ python ftest.py
  23. tadaa
Add Comment
Please, Sign In to add comment