modified commander
authorMarius Sandu-Popa <sandupopamarius@gmail.com>
Fri, 19 Mar 2010 13:37:44 +0000 (15:37 +0200)
committerMarius Sandu-Popa <sandupopamarius@gmail.com>
Fri, 19 Mar 2010 13:38:03 +0000 (15:38 +0200)
bt_comm/client/Client.py

index e374a66..e2b6d64 100644 (file)
@@ -74,8 +74,9 @@ class Commander(Thread):
                return msg
                        
        def startDaemon(self, node):
-               comm = "PYTHONPATH=/home/p2p/cs-p2p-next/bt_comm:/home/p2p/cs-p2p-next/bt_comm/start-clients/ python /home/p2p/cs-p2p-next/bt_comm/server/Server.py start"
-               
+               print node.daemon_dir
+               comm = "PYTHONPATH=/home/p2p/cs-p2p-next/bt_comm:/home/p2p/cs-p2p-next/bt_comm/start-clients/ python /home/p2p/cs-p2p-next/bt_comm/server/Server.py start " + node.public_address + " " + node.listen_port
+               print comm
                #self.printDummyCommand(node.public_address, node.public_port, node.ssh_port, comm)
                self.sendSSHComm(node.public_address, node.username, int(node.ssh_port), comm)
                self.sendSSHComm(node.public_address, node.username, int(node.ssh_port), "ps -ef | grep Server")