[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to call a command from another one
From: |
Robert Millan |
Subject: |
Re: How to call a command from another one |
Date: |
Tue, 12 Jun 2007 16:16:26 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 address@hidden Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.