You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm referring to the function Mininet/node.py: cmd
When doing node.cmd(cmd, printPid=True), it doesn't print the PID. cmd is, for example, running another Python script. These are commands with the '&' appended, so that script continues to execute in the background.
Commenting out these lines: if len( cmd ) > 0 and cmd[ -1 ] == '&': # print ^A{pid}\n so monitor() can set lastPid cmd += ' printf "\\001%d\\012" $! '
in node.py and changing the elif to if on the following line results in the desirable output for me.
The text was updated successfully, but these errors were encountered:
Printing the pid is for the benefit of lastPid; if you want it yourself for something that is running in the background then you can just run 'echo $!'; I don't have time to look at it now, but I seem to recall that that check is in there for a reason like breaking lastPid and/or confusing sentinel/prompt detection.
I'm referring to the function Mininet/node.py: cmd
When doing node.cmd(cmd, printPid=True), it doesn't print the PID. cmd is, for example, running another Python script. These are commands with the '&' appended, so that script continues to execute in the background.
Commenting out these lines:
if len( cmd ) > 0 and cmd[ -1 ] == '&': # print ^A{pid}\n so monitor() can set lastPid cmd += ' printf "\\001%d\\012" $! '
in node.py and changing the elif to if on the following line results in the desirable output for me.
The text was updated successfully, but these errors were encountered: