From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy79j-0001Uu-Fp for mharc-grub-devel@gnu.org; Tue, 12 Jun 2007 10:15:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy79h-0001UO-ND for grub-devel@gnu.org; Tue, 12 Jun 2007 10:15:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy79h-0001U4-5t for grub-devel@gnu.org; Tue, 12 Jun 2007 10:15:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy79g-0001Tv-Uu for grub-devel@gnu.org; Tue, 12 Jun 2007 10:15:33 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy79g-0001Kc-LB for grub-devel@gnu.org; Tue, 12 Jun 2007 10:15:32 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Hy79e-0000Lf-SP for grub-devel@gnu.org; Tue, 12 Jun 2007 16:15:31 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1Hy7AY-0000dy-3r for grub-devel@gnu.org; Tue, 12 Jun 2007 16:16:26 +0200 Date: Tue, 12 Jun 2007 16:16:26 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070612141626.GC1754@aragorn> References: <466E8A17.3030507@raulete.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466E8A17.3030507@raulete.net> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: Re: How to call a command from another one X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 14:15:34 -0000 On Tue, Jun 12, 2007 at 01:57:11PM +0200, adrian15 wrote: > Hi, > > I want to implement the pause command so that it is the same thing as > the echo command with all of its options and also that it stops. > > My first approach which I could not compile because I do not how to > add > a new command to grub2 is the following one: > > > char key; > if (argc!=0) > grub_cmd_echo(state,argc,args); > key = grub_getkey (); > > return 0; > > > > So my question is if it's an orthodox way of calling another command, if > I should call it in another way or if I should not call it in any way. I don't know how to call other commands, but in this case, maybe grub_printf() will be good enough? -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.