Subj : Re: JavaScript Command Shell
To   : Matt
From : Tracker1
Date : Fri Dec 19 2008 11:06 pm

On 12/19/2008 10:25 PM, Matt wrote:
> I'm a bit confused. I am trying to write a JavaScript command shell for my
> board. I added the command shell to the configuration and set the internal
> code. When I login to try and use it, it says that it cannot find mframe.bin.
> Well, duh, because its JavaScript.
>
> How do I let the configuration that it is a javascript and not a baja module.
> Or, do I have to make a baja module that executes a javascript?

make a baja that executes the .js
example....

:top
EXEC "?s3.js"
# should only see in a shell change
PAUSE
GOTO top


replace s3 with your shell... the loop is so you can break out  of the js, and
reload... this also works for changing shells... your js shell will need to
detect the shell changed and exit the js.

--
Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net
icq: 4935386  -  AIM/AOL: azTracker1  -  Y!: azTracker1  -  MSN/Win: (email)

... FRA #008: Small print leads to large risk.

---
� Synchronet � theroughnecks.net - you know you want it