From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31889 invoked by alias); 19 Nov 2007 14:36:01 -0000 Received: (qmail 31879 invoked by uid 22791); 19 Nov 2007 14:36:00 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Nov 2007 14:35:53 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 874F7195021F; Mon, 19 Nov 2007 07:35:51 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 0D5AC195011C; Mon, 19 Nov 2007 07:35:49 -0700 (MST) Message-ID: <47419F44.4030600@mlbassoc.com> Date: Tue, 20 Nov 2007 20:28:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Syed Ismail CC: ecos-discuss@ecos.sourceware.org References: <20071119125838.14957.qmail@pro13.rediffmailpro.com> In-Reply-To: <20071119125838.14957.qmail@pro13.rediffmailpro.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] redboot X-SW-Source: 2007-11/txt/msg00149.txt.bz2 Syed Ismail wrote: > > > On Mon, 19 Nov 2007 Gary Thomas wrote : >> Syed Ismail wrote: >>> Hi >>> I Am working on redboot. I want to call a few defined >> functions like do_fconfig(); do_exec(); in source code >> as soon as redboot prompt comes up. Where do i do this >> and What are the command line arguements to pass. >>> >> Your question is a bit vague. Are you asking how to >> execute a set of >> commands >> automatically when RedBoot comes up? If so, look at >> startup scripts. >> >> -- >> Gary Thomas > > I am in quite a mess,(hardware), actually. Please bear with me. I know i can execute any commands by writing a startup/boot script. I want to call it from code. for example, the command "version" is executed as do_version(0,0); in cyg_start(). Why? What's wrong with using a script? > Similarly i want to call two fuctions, "do_load()" and "do_exec()" here. Can you please tell me the command line arguements to pass for these functions. I am just trying to skip a more messy problem by doing this. pl help. It's pretty messy to call such functions directly. You'd have to supply a valid argc/argv list which corresponds to the arguments you need. Again, why? n.b. vague/unresponsive answers will most likely be ignored. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss