From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: How to call a command from another one
Date: Tue, 12 Jun 2007 16:16:26 +0200 [thread overview]
Message-ID: <20070612141626.GC1754@aragorn> (raw)
In-Reply-To: <466E8A17.3030507@raulete.net>
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.
next prev parent reply other threads:[~2007-06-12 14:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 11:57 How to call a command from another one adrian15
2007-06-12 14:16 ` Robert Millan [this message]
2007-06-12 14:09 ` adrian15
2007-06-12 17:16 ` Marco Gerards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070612141626.GC1754@aragorn \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.