[coldfire-gnu-discuss] system() function broken
Nathan Sidwell
nathan at codesourcery.com
Sun May 21 15:10:27 UTC 2006
Michel Marti wrote:
> Nathan Sidwell wrote:
>
>> Can you determine what is emitting the 'applet not found' message?
>
>
> That's a message from busybox itself. E.g. if you invoke "busybox
> blabla" you will get "blabla: applet not found". According to the
> system() manpage, it will call "/bin/sh -c <command>", so it looks like
> the command passed to system() somehow gets lost/garbled.
ah, so IIUC, it appears the "/bin/busybox" string is being transformed into
"/bin/busybox ?", so busybox is trying to find the '?' applet.
> The board we're using runs linux-2.6.17-rc4 and busybox 1.1.3.
thanks for this information. At the moment we're unable to reproduce the
problem. Have you tried a shell builtin, such as
system ("echo hello");
?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list