Skip to content

Commit

Permalink
setup script launched detached
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Lee committed Sep 17, 2011
1 parent 6f2ed37 commit 4a1f951
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CLnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ def deploy(self,payload,sshKey,launch=False):
if launch is True:
# LAUNCH Payload
try:
res=GF.run("ssh -o StrictHostKeyChecking=no -i "+sshKey+" ubuntu@"+self.url+" 'python ~/payload/setup.py'")
print "ssh -o StrictHostKeyChecking=no -i "+sshKey+" ubuntu@"+self.url+" 'python ~/payload/setup.py'"
print "ssh -o StrictHostKeyChecking=no -i "+sshKey+" ubuntu@"+self.url+" 'python ~/payload/setup.py&'"
res=GF.run("ssh -o StrictHostKeyChecking=no -i "+sshKey+" ubuntu@"+self.url+" 'screen -dm python ~/payload/setup.py'")

self.deployed = True
except Exception as x:
print x, "\n", res
Expand Down

0 comments on commit 4a1f951

Please sign in to comment.