The different between run the command by ./ and by busybox
liu.renfeng
liu.renfeng at gmail.com
Mon Nov 20 09:21:40 UTC 2006
Thanks for your kindly explain, I am clear now.
Best Regards,
Robin
Tel: +86-27-8761-7326 Ext: 309
2006-11-20
发件人: Roberto A. Foglietta
发送时间: 2006-11-20 17:05:07
收件人: liu.renfeng; busybox at busybox.net
抄送:
主题: Re: RE: The different between run the command by ./ and by busybox
2006/11/20, liu.renfeng <liu.renfeng at gmail.com >:
>
>
> Thanks for your quickly reply.
> I know that FAQ told us to run program like "./busybox [appletname]
> [options]"
> but what I asked is the difference between that and to run programe like "./
> appletname option". I don't do any operation like "mv busybox ls" and then
> "./ls -l".
you should do that
./executable-name
to run a program in the current directory when the current directory
is not in the PATH enviroment. So this
./busybox ls
works because you call busybox with "ls" as parameter and this
./ls
could works only if there are a link which point to busybox
mv busybox ls
ln -s busybox ls
try to do this
./ls -al
in the path in which both "./busybox ls" and "./ls" works
Cheers,
--
/roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20061120/79179689/attachment.htm
More information about the busybox
mailing list