[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] new feature: attach a process to emulated serial port
From: |
Derek Fawcus |
Subject: |
Re: [Qemu-devel] new feature: attach a process to emulated serial port |
Date: |
Mon, 11 Oct 2004 14:26:30 +0100 |
On Fri, Oct 08, 2004 at 11:46:21PM +0200, Johannes Martin wrote:
> Hi,
>
> The attached patch adds another variety of the -serial and -monitor
> options. You can now use
> -serial "exec:any shell command"
> to redirect the input/output of named shell command to the guest's serial
> port.
Hmm. How about simply using FIFO's instead, then one doesn't have any
issues with fork/system/etc
i.e. add options of -serialin <path> -serialout <path> and have -serial <path>
set both of the above. Then one can simply do:
mkfifo /tmp/serin /tmp/serout
anycmd < /tmp/serout > /tmp/serin &
qemu ... -serialin /tmp/serin -serialout /tmp/serialout
DF