From 5b8f97fa55de81373c0d7d57b930e9334d2395d9 Mon Sep 17 00:00:00 2001 From: Hiroaki KAWAI Date: Tue, 22 Dec 2015 19:54:53 +0900 Subject: [PATCH] fix controller stdout output stdout was be truncated on bash ``` ( echo "A"; echo "B" >&2 ) 1>out.txt 2>out.txt ``` Signed-off-by: Hiroaki KAWAI --- mininet/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index c93fc1b8..c8c9b0a5 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1389,7 +1389,7 @@ def start( self ): if self.cdir is not None: self.cmd( 'cd ' + self.cdir ) self.cmd( self.command + ' ' + self.cargs % self.port + - ' 1>' + cout + ' 2>' + cout + ' &' ) + ' >' + cout + ' 2>&1 &' ) self.execed = False def stop( self, *args, **kwargs ):