U-boot pipe command output

2.9k views Asked by At

In U-boot is it possible to pipe the output of a command to a variable:

U-Boot: ping 192.168.0.0.1 | ping_res
U-Boot: printenv ping_res

Thanks

1

There are 1 answers

0
CJBS On

The standard CLI of U-Boot can be replaced with the Hush shell, but its capabilities do not seem to include pipes (U-Boot does not have multitasking) nor I/O redirection. See http://www.denx.de/wiki/view/DULG/CommandLineParsing.

Note: your example of a pipe and variable assignment is incorrect.

(Answer created from @sawdust's comment)