Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- host = "xxx.xxx.xxx.xxx"
- user = "cassandra"
- password = "cassandra"
- process = subprocess.Popen("cqlsh " + host + " -u " + user + " -p " + password, shell=True)
- exitCode = process.wait()
- if exitCode == 0:
- print "Job Done!"
- else:
- print "Still working!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement