Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import subprocess
  2.  
  3. host = "xxx.xxx.xxx.xxx"
  4. user = "cassandra"
  5. password = "cassandra"
  6. process = subprocess.Popen("cqlsh " + host + " -u " + user + " -p " + password, shell=True)
  7. exitCode = process.wait()
  8. if exitCode == 0:
  9. print "Job Done!"
  10. else:
  11. print "Still working!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement