Project

General

Profile

Task #4078

Use popen in ndn_application

Added by Ashlesh Gawande over 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
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


Related issues

Related to mini-ndn - Task #3051: Investigate Mininet's per-host private directories feature for NFD socket fileCode reviewDamian Coomes07/17/2015

Actions

Also available in: Atom PDF