inetrg / inet-nm

INET Node Manager
MIT License
1 stars 1 forks source link

`inet-nm-exec` output not flushing completely #5

Closed MrKevinWeiss closed 1 year ago

MrKevinWeiss commented 1 year ago

It seems that not all lines get caught with the exec function, repeating the command yielded different results...

``` weiss@mobi36:~/RIOT$ inet-nm-exec printenv -a -s -b nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: SHELL=/bin/bash NODE:0:BOARD:nucleo-f429zi: NM_BOARD=nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: LC_ADDRESS=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: LC_NAME=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: LC_MONETARY=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: NM_CONFIG_DIR=/etc/inet-nm NODE:0:BOARD:nucleo-f429zi: PWD=/home/weiss/RIOT NODE:0:BOARD:nucleo-f429zi: LOGNAME=weiss NODE:0:BOARD:nucleo-f429zi: XDG_SESSION_TYPE=tty NODE:0:BOARD:nucleo-f429zi: _=/usr/bin/printenv NODE:0:BOARD:nucleo-f429zi: MOTD_SHOWN=pam NODE:0:BOARD:nucleo-f429zi: HOME=/home/weiss NODE:0:BOARD:nucleo-f429zi: LC_PAPER=C.UTF-8 weiss@mobi36:~/RIOT$ inet-nm-exec printenv -a -s -b nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: SHELL=/bin/bash NODE:0:BOARD:nucleo-f429zi: NM_BOARD=nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: LC_ADDRESS=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: LC_NAME=C.UTF-8 weiss@mobi36:~/RIOT$ inet-nm-exec printenv -a -s -b nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: SHELL=/bin/bash NODE:0:BOARD:nucleo-f429zi: NM_BOARD=nucleo-f429zi NODE:0:BOARD:nucleo-f429zi: LC_ADDRESS=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: LC_NAME=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: LC_MONETARY=C.UTF-8 NODE:0:BOARD:nucleo-f429zi: NM_CONFIG_DIR=/etc/inet-nm NODE:0:BOARD:nucleo-f429zi: PWD=/home/weiss/RIOT NODE:0:BOARD:nucleo-f429zi: LOGNAME=weiss NODE:0:BOARD:nucleo-f429zi: XDG_SESSION_TYPE=tty ```
MrKevinWeiss commented 1 year ago

Fixed with 9c50470d8e318a88f602dc20174653db3b9e587b