Project

General

Profile

Actions

Task #4078

open

Use popen in ndn_application

Added by Ashlesh Gawande almost 7 years ago. Updated almost 6 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 1 (1 open0 closed)

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

Actions
Actions

Also available in: Atom PDF