From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eabaa-0000SV-KZ for qemu-devel@nongnu.org; Fri, 11 Nov 2005 11:17:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EabaW-0000QY-Aj for qemu-devel@nongnu.org; Fri, 11 Nov 2005 11:17:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EabaW-0000QS-66 for qemu-devel@nongnu.org; Fri, 11 Nov 2005 11:17:16 -0500 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EabaU-0007xl-UB for qemu-devel@nongnu.org; Fri, 11 Nov 2005 11:17:15 -0500 Message-ID: <4374C405.1000807@gmx.de> Date: Fri, 11 Nov 2005 17:17:09 +0100 From: Oliver Gerlich MIME-Version: 1.0 Subject: Re: [Qemu-devel] Batch mode via Scripts for Qemu? References: <200511111043.53147.dfeustel@verizon.net> In-Reply-To: <200511111043.53147.dfeustel@verizon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dfeustel@mindspring.com, qemu-devel@nongnu.org Dave Feustel wrote: > Is there any way to control Qemu with a script? > (e.g. start Qemu with > Qemu -S -hda disk.img > then feed the commands > loadvm > c > <...> > stop > savevm > q > to the monitor console) > > Thanks, > Dave Feustel You can redirect the monitor to stdio and then send your commands over that connection. IIRC the monitor can also be redirected to a pty - maybe that's even better than stdio. Oliver