[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] would you please help me? thanks!
From:       David Meggy <dmeggy () techsol ! ca>
Date:       2004-02-27 22:11:22
Message-ID: 1077919883.465.7.camel () DavidAsus
[Download RAW message or body]

On Fri, 2004-02-27 at 02:21, guomei2002109@sohu.com wrote:
> hello! Now I am using busybox 0.60.0(under uclinux ,arm) .I have some
questions and I need your help.would you please help me? thanks in
advance! 

This is a very old version of Busybox.  You should upgrade.
 
> Questions 1: we must make a symbolic link before we can use busybox.Is
that right? if so, when I configure the kernel of uclinux,I select other
shell in the core application and select msh in the busybox.But the
kenel can not start up. I think before rc file run, there is not a
symbolic link and the msh can not be used. so there is not a shell at
this time. so the kernel cann't start up. what should I do?  
> 

You are getting your terms mixed up.  The kernel is (uc)Linux, and
busybox is an application that contains other applications

> Questions 2: I select two shells(sash and msh). the kernel can start
up use sash and can run.
> Then I make a symbolic link to the busybox. 
> />ln -s /home/busybox /tmp/sh  
> /> /tmp/sh
> 

If you use Busybox's installation option, all of the links will be
created for you.

> BusyBox v0.60.0 (2004.02.26-01:19+0000) Built-in shell (msh)
> Enter 'help' for a list of built-in commands.
> 
> # help
> 
> Built-in commands:
> -------------------
>         . : break cd continue eval exec exit export help login newgrp
>         read readonly set shift times trap umask wait [ busybox cat
chmod
>         chroot date echo env expr getopt ls msh ps sh sleep test wc
> 

This is a very minimalist setup. 

> But it can only run some very simple script.
> for example,
> #!/bin/bash 
> # give the initialize value to STR
> a="Hello World" 
> /tmp/echo $a

This is using /bin/bash.  Which is its own program and has nothing to do
with Busybox.

> It can not handles all the basic stuff (for, case/esac, while,
if/then/else) .for example
> 1.
> #!/bin/sh 
> for item in `cat list.txt`
> do
>    echo $item
> done

try adding a ';' at the end of the 2nd line 

> 2.
> #! /bin/bash 
> if [ -f /bin/date ]; then 
> /tmp/echo `/bin/date` 
> else 
> /tmp/echo "/bin/date doesnot exist" 
> fi 

Your using bash again.  Also how does this not work.  Saying it doesn't
work really can't get much of a response.

> it can not handle the above two instances. What is the reason? could
you tell me ? I will be very thankful !

No I can't, because you didn't say what is wrong.

> sorry! My English is not good! I don't know how can I express
correctly. sorry!

You english if fine, you just didn't describe a problem.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: dmeggy@techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic