Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. username = raw_input("enter your username (leave blank if your machine name is the username):")
  2. password = getpass("enter your password: ")
  3. env["connection_attempts"] = 2
  4. env["password"] = password
  5. env["user"] = username or env["local_user"]
  6. env["hosts"] = ["rhds01a"]
  7. env["port"] = 22
  8. env["host_sting"] = "{}@{}:{}".format(env["user"], env["hosts"][0], env["port"])
  9.  
  10. src_file_path = "/opt/fabric_post_install/post_install.log"
  11. dest_file_path = "/home/user/Desktop/PyCharmProjects/dataparser/log"
  12.  
  13. get(src_file_path, dest_file_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement