Search Mailing List Archives
[mininet-discuss] How to redirect the ouput of a process to mininet cli.
wette at mail.upb.de
Mon Apr 21 05:56:12 PDT 2014
You can redirect stdout and stderr to a file exactly in the way you would do that in bash, too.
Just add "> /tmp/output 2>&1" to your function call.
Von meinem iPhone gesendet
> Am 21.04.2014 um 14:49 schrieb Shiyao Ma <i at introo.me>:
> Mininet can start a process and not wait it by Node.sendCmd. But this loses all the stdout of that process and more importantly the stderr, which quite critic when writing a python script.
> I wonder is there any sendCmd like thing but also outputs the stderr and stdout of the launched process to CLI(Mininet) or a certain file.
> mininet-discuss mailing list
> mininet-discuss at lists.stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mininet-discuss