From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CH0JN-0001iC-UU for qemu-devel@nongnu.org; Mon, 11 Oct 2004 09:34:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CH0JN-0001hw-EQ for qemu-devel@nongnu.org; Mon, 11 Oct 2004 09:34:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CH0JN-0001hm-Be for qemu-devel@nongnu.org; Mon, 11 Oct 2004 09:34:01 -0400 Received: from [144.254.224.140] (helo=ams-iport-1.cisco.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CH0C8-0007T5-JE for qemu-devel@nongnu.org; Mon, 11 Oct 2004 09:26:32 -0400 Received: from cisco.com (edinburgh.cisco.com [144.254.112.76]) by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id i9BDQSSf006573 for ; Mon, 11 Oct 2004 15:26:28 +0200 (MEST) Received: (from dfawcus@localhost) by cisco.com (8.8.8/2.6/Cisco List Logging/8.8.8) id OAA09035 for qemu-devel@nongnu.org; Mon, 11 Oct 2004 14:26:30 +0100 (BST) Date: Mon, 11 Oct 2004 14:26:30 +0100 From: Derek Fawcus Subject: Re: [Qemu-devel] new feature: attach a process to emulated serial port Message-ID: <20041011142629.C1087@edinburgh.cisco.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: ; from jmartin@notamusica.com on Fri, Oct 08, 2004 at 11:46:21PM +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 -serialout and have -serial 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