Hi, I'm trying to grab stdout and stderr separately (by default, UML will output both to /dev/tty0 which is mapped to the host's stdout only).
To do so I pass stderr through another tty: /usr/src/linux-2.6.21.5-um/linux init=`pwd`/test rootfstype=hostfs con0=fd:0,fd:1 con1=fd:2 >out 2>err Then in the script I remap all file descriptors: $ cat test #!/bin/bash exec </dev/tty0 >/dev/tty0 2>/dev/tty1 echo stdout echo stderr >&2 Unfortunately after UML finishes, the terminal is not reset properly (typically echo is off). It seems this happens when you use the same terminal (even through different file descriptors) more than once (in this case, my terminal is used twice via fd:1 and fd:2). I have the feeling that UML saves the initial terminal configuration for each fd:x when opening it, but overwrite the previous backup when opening the terminal through a different fd. Is there a way to fix it? Thanks, -- Sylvain ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user