[uClinux-dev] the Kernel does not start a script
Peter Turczak
peter at turczak.de
Tue Jun 3 05:41:32 EDT 2008
Hi,
not to ask a stupid question but could it be that these scripts are
written in dos-format?
The cr-lf on the line-end may confuse the system, at least some
unices are a little allergic on such ,,noise''.
Greetings
Peter
On Jun 3, 2008, at 11:25 AM, Michael Schnell wrote:
>
>> 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
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
More information about the uClinux-dev
mailing list