From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy66w-0001El-9N for mharc-grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy66u-0001Dr-BU for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy66r-0001C7-9J for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy66q-0001Bi-CJ for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:32 -0400 Received: from relay.udl.es ([193.144.10.29] helo=relay3.udl.es) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy66p-0006rm-Gz for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:31 -0400 Received: from jupiter.udl.net (jupiter.udl.net [172.16.2.2]) by relay3.udl.es (8.13.7/8.13.7) with ESMTP id l5CD89m6012957 for ; Tue, 12 Jun 2007 15:08:15 +0200 Received: from [172.16.51.20] (PL-CAP020.udl.net [172.16.51.20]) by jupiter.udl.net (8.11.7p1+Sun/8.11.6) with ESMTP id l5CCxBq21521 for ; Tue, 12 Jun 2007 14:59:11 +0200 (MET DST) Message-ID: <466E8A17.3030507@raulete.net> Date: Tue, 12 Jun 2007 13:57:11 +0200 From: adrian15 User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (relay3.udl.es [10.69.4.19]); Tue, 12 Jun 2007 15:08:15 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3407/Tue Jun 12 14:01:54 2007 on relay3.udl.es X-Virus-Status: Clean X-detected-kernel: Linux 2.6 (newer, 2) Subject: 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 13:08:36 -0000 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. adrian15