Re: simple CLI architecture



Roman Mashak wrote:
> Hello, All!
>
> I'm trying to implement simple Command Line Interface (CLI) for our
> design based on linux. I will use GCC as compiler. I don't need some special
> features (like command line editing, commands history etc.) by now, just
> simple and basic functionality:
> 1) enter command
> 2) parse command line
> 3) execute code related to command
>
> Seems to be simple but I don't have any idea right now, that's why I ask for
> you to help me out :)
>
> With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx
>
>

Do yourself and all your users a big favor. Use a predefined CLI
package. My favorite is embedded TCL.

This way, your CLI is up in a week, has full scripting and control language,
and has an off the shelf users manual.

.



Relevant Pages

  • Re: XP is corrupting
    ... > as being the beginning of the end for windows. ... but giving good instructions on how to do stuff in linux is all ... > do some things in the CLI than it is to do in the GUI, ... > a CLI command and then to check the parameters, then to type it in and hope ...
    (comp.os.linux.misc)
  • Re: Great SWT Program
    ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... I'd have to boot up a Windows system and try stuff, ...
    (comp.lang.java.programmer)
  • Re: Great SWT Program
    ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... "undo move" in Explorer to put the non-matches back. ...
    (comp.lang.java.programmer)
  • Re: LIB$SET_SYMBOL ... 4096, why not 8192?
    ... The CLI now supports a DCL symbol capacity of 8192. ... Various other VMS components have been modified to accomodate the CLI. ... command line ... $ on warning then goto end_write_loop ...
    (comp.os.vms)
  • Re: GUI vs: CLI (was: Shell command in VB6)
    ... >>or using the GUI. ... Unless the command you used for that CLI makes its way ... contains all the options #commented out, you use your text editor to ...
    (comp.programming)