[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Re: RE: The different between run the command by ./ and by busybox
From: "liu.renfeng" <liu.renfeng () gmail ! com>
Date: 2006-11-20 9:21:40
Message-ID: 200611201721349843375 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
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@busybox.net
抄送:
主题: Re: RE: The different between run the command by ./ and by busybox
2006/11/20, liu.renfeng <liu.renfeng@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
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Verdana;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>Thanks for your kindly explain, I
am clear now.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT
face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-no-proof: yes">Best Regards,</SPAN><SPAN lang=EN-US
style="mso-no-proof: yes"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT
face="Times New Roman"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-no-proof: yes">Robin </SPAN><SPAN lang=EN-US
style="mso-no-proof: yes"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-no-proof: yes"><FONT
face="Times New Roman"> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-no-proof: yes"><FONT face="Times New Roman">Tel:
+86-27-8761-7326 Ext: 309</FONT></SPAN><SPAN lang=EN-US
style="mso-no-proof: yes"><o:p></o:p></SPAN></P></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2></FONT></DIV>
<DIV><FONT size=2>2006-11-20</FONT></FONT></DIV></FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Roberto A.
Foglietta</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG>
2006-11-20 17:05:07</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> liu.renfeng;
busybox@busybox.net</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: RE: The different
between run the command by ./ and by busybox</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>2006/11/20, liu.renfeng <liu.renfeng@gmail.com >:</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>> Thanks for your quickly reply.</DIV>
<DIV>> I know that FAQ told us to run program like "./busybox [appletname]</DIV>
<DIV>> [options]"</DIV>
<DIV>> but what I asked is the difference b \
etween that and to run programe like "./</DIV> \
<DIV>> appletname option". I don't do any operation like "mv busybox ls" and then</DIV>
<DIV>> "./ls -l".</DIV>
<DIV> </DIV>
<DIV> you should do that</DIV>
<DIV> </DIV>
<DIV> ./executable-name</DIV>
<DIV> </DIV>
<DIV> to run a program in the current directory when the current directory</DIV>
<DIV>is not in the PATH enviroment. So this</DIV>
<DIV> </DIV>
<DIV> ./busybox ls</DIV>
<DIV> </DIV>
<DIV> works because you call busybox with "ls" as parameter and this</DIV>
<DIV> </DIV>
<DIV> ./ls</DIV>
<DIV> </DIV>
<DIV> could works only if there are a link which point to busybox</DIV>
<DIV> </DIV>
<DIV> mv busybox ls</DIV>
<DIV> ln -s busybox ls</DIV>
<DIV> </DIV>
<DIV> try to do this</DIV>
<DIV> </DIV>
<DIV> ./ls -al</DIV>
<DIV> </DIV>
<DIV> in the path in which both "./busybox ls" and "./ls" works</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> Cheers,</DIV>
<DIV>-- </DIV>
<DIV>/roberto</DIV></FONT></DIV></BODY></HTML>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic