This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: does redboot support scripting?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: kneep <kneep at sh dot askey dot com dot tw>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 24 Jun 2004 14:48:49 +0200
- Subject: Re: [ECOS] does redboot support scripting?
- References: <40DAC556.10603@sh.askey.com.tw>
On Thu, Jun 24, 2004 at 08:13:10PM +0800, kneep wrote:
> hi all.
> I mean if I have a group of commands to execute sequentially under
> redboot???can I write these commands into a script and only need to
> execute the script just like the boot script of redboot?
> for example, to update a image, I have to do things like following:
> load -h 192.168.2.x zImage -r -b 0x108000
> fis create zImage
> these commands are some boring and hard to memorize. so, is it possible
> to write a simple script like the boot script to execute them?
> actually I don't think I need this feature at all. but I do think that
> some end-user really need it.
> do I miss something in the manual? if so, sorry.
Yes, you missed it in the manual:
http://ecos.sourceware.org/docs-latest/redboot/alias-command.html
If i remember correctly, you put a ; between commands, just like on a
shell.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss