[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>&nbsp;</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">&nbsp;<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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>2006/11/20,&nbsp;liu.renfeng&nbsp; &lt;liu.renfeng@gmail.com &gt;:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;quickly&nbsp;reply.</DIV>
<DIV>&gt;&nbsp;I&nbsp;know&nbsp;that&nbsp;FAQ&nbsp;told&nbsp;us&nbsp;to&nbsp;run&nbsp;program&nbsp;like&nbsp;"./busybox&nbsp;[appletname]</DIV>
 <DIV>&gt;&nbsp;[options]"</DIV>
<DIV>&gt;&nbsp;but&nbsp;what&nbsp;I&nbsp;asked&nbsp;is&nbsp;the&nbsp;difference&nbsp;b \
etween&nbsp;that&nbsp;and&nbsp;to&nbsp;run&nbsp;programe&nbsp;like&nbsp;"./</DIV> \
<DIV>&gt;&nbsp;appletname&nbsp;option".&nbsp;I&nbsp;don't&nbsp;do&nbsp;any&nbsp;operation&nbsp;like&nbsp;&nbsp;"mv&nbsp;busybox&nbsp;ls"&nbsp;and&nbsp;then</DIV>
 <DIV>&gt;&nbsp;"./ls&nbsp;-l".</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;you&nbsp;should&nbsp;do&nbsp;that</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;./executable-name</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;to&nbsp;run&nbsp;a&nbsp;program&nbsp;in&nbsp;the&nbsp;current&nbsp;directory&nbsp;when&nbsp;the&nbsp;current&nbsp;directory</DIV>
 <DIV>is&nbsp;not&nbsp;in&nbsp;the&nbsp;PATH&nbsp;enviroment.&nbsp;So&nbsp;this</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;./busybox&nbsp;ls</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;works&nbsp;because&nbsp;you&nbsp;call&nbsp;busybox&nbsp;with&nbsp;"ls"&nbsp;as&nbsp;parameter&nbsp;and&nbsp;this</DIV>
 <DIV>&nbsp;</DIV>
<DIV>&nbsp;./ls</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;could&nbsp;works&nbsp;only&nbsp;if&nbsp;there&nbsp;are&nbsp;a&nbsp;link&nbsp;which&nbsp;point&nbsp;to&nbsp;busybox</DIV>
 <DIV>&nbsp;</DIV>
<DIV>&nbsp;mv&nbsp;busybox&nbsp;ls</DIV>
<DIV>&nbsp;ln&nbsp;-s&nbsp;busybox&nbsp;ls</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;try&nbsp;to&nbsp;do&nbsp;this</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;./ls&nbsp;-al</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;in&nbsp;the&nbsp;path&nbsp;in&nbsp;which&nbsp;both&nbsp;"./busybox&nbsp;ls"&nbsp;and&nbsp;"./ls"&nbsp;works</DIV>
 <DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;Cheers,</DIV>
<DIV>--&nbsp;</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