Yes. In other OSs  there is the notion of binary interpreters.
In Linux for example, the script_fmt interpreter looks if the first byte is
'#' and the second byte is '!', and then try to parse the interpreter from
the first line, and call that by building the proper args to it.


On Tue, Dec 1, 2015 at 6:31 AM, barret rhoden <[email protected]> wrote:

> On 2015-12-01 at  6:27 'Davide Libenzi' via Akaros wrote:
> > On Tue, Dec 1, 2015 at 6:21 AM, barret rhoden <[email protected]>
> > wrote:
> >
> > > On 2015-11-30 at 17:12 'Davide Libenzi' via Akaros wrote:
> > > > The proc create API expects an ELF. Nice to have arbitrary binfmt
> > > > capability, to be able to use with with scripts as well.
> > >
> > > We're not really interested in anything other than ELF at this
> > > point. You can run scripts by the way.  The ELF loading fails, and
> > > busybox checks the errno and execs the script.  A few things in /bin
> > > like /bin/ps are scripts.
> > >
> >
> > Yes, I know we run scripts ☺
> > But relying explicitly in your code, on busybox in order to run them,
> > is not what typically written software work.
> > It means that every piece of code wanting to exec (or proc create) a
> > binary, it has to explicitly add BB in front, and interpreter.
>
> Ah, I didn't understand what you were aiming for.  It looks like you
> want to sys_proc_create a script directly from a program, not from the
> shell.  Right?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Akaros" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to