Actions
Task #4078
openUse popen in ndn_application
Start date:
05/05/2017
Due date:
% Done:
0%
Estimated time:
Description
Currently we use cmd. Then we use a shell command to get the pid - which is unreliable.
But Popen needs to be run with correct HOME environment, otherwise NLSR can't connect with NFD.
Popen does not seem to work correctly for cluster, even when HOME environment is passed:
out = self.node.popen("printenv").stdout.read()
env = {}
for elem in out.split("\n"):
if elem != "":
tmp=elem.split("=")
env[tmp[0]] = tmp[1]
env["HOME"] = self.node.homeFolder
self.popen = self.node.popen(command.split(), env=env)
So maybe for now keep using cmd for cluster:
https://gerrit.named-data.net/#/c/3870/3/ndn/ndn_application.py
Actions