All of lore.kernel.org
 help / color / mirror / Atom feed
From: adrian15 <adrian15@raulete.net>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: How to call a command from another one
Date: Tue, 12 Jun 2007 13:57:11 +0200	[thread overview]
Message-ID: <466E8A17.3030507@raulete.net> (raw)

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




             reply	other threads:[~2007-06-12 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12 11:57 adrian15 [this message]
2007-06-12 14:16 ` How to call a command from another one Robert Millan
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=466E8A17.3030507@raulete.net \
    --to=adrian15@raulete.net \
    --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.