[uClinux-dev] the Kernel does not start a script

Michael Schnell mschnell at lumino.de
Tue Jun 3 05:25:08 EDT 2008


> You do not need CONFIG_BINFMT_MISC IIRC, the code is in binfmt_script.c
> and is always compiled in.
>   
OK.
>
> Looks ok,  what happens if you run:
>
> 	/bin/msh ./xmsh
>   
I tried

/bin/msh ./xmsh

/bin/msh xmsh

/bin/msh -f ./xmsh

/bin/msh -f xmsh

. ./xmsh

. xmsh


with and without the executable bit set for xmsh and with and without 
adding " -f" or " -f "
to the first line of the script

I always get
: no such file or directory
What I find funny is the colon at the start of the line. seems as if an 
invisible filename is printed here.

The only way I found to run the script is using the sash shell and do

source xmsh or

source ./xmsh



> Sometimes you need to tell the shell how to load the file, for example:
>
> 	#!/usr/bin/awk -f
>   
that does not help either.

Does it work on your uCLinux  ? (mine is a nommu flavor, but I don't see 
why this should prevent executing scripts. If it compiles, it should work )


BTW.: do you know a place where I can find a description of msh ? 
Googeling only seems to come up with some Microsoft stuff.

-Michael



More information about the uClinux-dev mailing list