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

List:       busybox
Subject:    Re: Why if I chnod +x my script can I not do ./myscript ?
From:       "Jason Schoon" <floydpink () gmail ! com>
Date:       2006-02-24 17:10:52
Message-ID: 78a54e1b0602240910l3717104bh3c65a98969977c28 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Here is a different/better question.  You have the full bash on your
system.  Why not link /bin/sh to that, rather than using busybox for your
shell?

On 2/24/06, Angus Comber <angus@iteloffice.com> wrote:
>
> I have tried
>
> #!/bin/bash
> #!/bin/bash
> #!/bin/ash
>
> script contents:
> #!/bin/sh
>
> # This script sends the asterisk call log to angus@mydomain.com
>
> cp email1backup email1
> cat /mnt/kd/cdr-csv/Master.csv >> email1
> cat email3 >> email1
> cat email1 | ssmtp angus@mydomain.com
>
> exit 0
>
>
> pbx Itel # cat /etc/shells
> /bin/bash
> /bin/ash
> /bin/sh
> pbx Itel #
>
>
> echo $SHELL
> /bin/sh
>
>
>
> pbx /bin # ls -l
> lrwxrwxrwx    1 root     root           19 Dec  8 06:09 addgroup ->
> ../usr/sbin/astwrap
> lrwxrwxrwx    1 root     root           19 Dec  8 06:09 adduser ->
> ../usr/sbin/astwrap
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ash -> busybox
> -rwxr-xr-x    1 root     root       475948 Feb 24  2005 bash
> -rwsr-xr-x    1 root     root       565388 Jun 29  2005 busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 cat -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 chgrp -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 chmod -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 chown -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 cp -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 cpio -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 date -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 dd -> busybox
> lrwxrwxrwx    1 root     root           19 Dec  8 06:09 delgroup ->
> ../usr/sbin/astwrap
> lrwxrwxrwx    1 root     root           19 Dec  8 06:09 deluser ->
> ../usr/sbin/astwrap
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 df -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 dmesg -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 echo -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 egrep -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 false -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 fgrep -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 grep -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 gunzip -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 gzip -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 hostname ->
> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ip -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ipaddr -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 iplink -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 iproute -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 iptunnel ->
> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 kill -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ln -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 login -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ls -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 mkdir -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 mknod -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 more -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 mount -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 mv -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 netstat -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 pidof -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ping -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 ps -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 pwd -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 rm -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 rmdir -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 sed -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 sh -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 sleep -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 stty -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 su -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 sync -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 tar -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 touch -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 true -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 umount -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 uname -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 uncompress ->
> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 usleep -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 vi -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 watch -> busybox
> lrwxrwxrwx    1 root     root            7 Dec  8 06:09 zcat -> busybox
> pbx /bin #
>
> filesystem is ext2
>
> file is called makeemail
>
> pbx Itel # ls makeemail -l
> -rwxrwxrwx    1 root     root          212 Feb 24 08:16 makeemail
> pbx Itel #
>
> I am logged in as root when running this.
>
>
> Hope this helps.
>
> Angus
>
>
>
>
> ----- Original Message -----
> *From:* Jason Schoon <floydpink@gmail.com>
> *To:* Paul Fox <pgf@brightstareng.com>
> *Cc:* busybox@mail.busybox.net
> *Sent:* Thursday, February 23, 2006 7:23 PM
> *Subject:* Re: Why if I chnod +x my script can I not do ./myscript ?
>
> Do you have #!/bin/bash at the top, rather than #!/bin/sh?
>
> As Paul noted, much more information would make this much easier to
> diagnose.  Contents of the file, type of shell(s) built into Busybox,
> default shell selected for Busybox, 'ls' of /bin, etc.
>
>
>
> On 2/23/06, Paul Fox <pgf@brightstareng.com> wrote:
> >
> > [ replying to the list.]
> >
> > > > > Hello
> > > > >
> > > > > I can run my script if I do
> > > > > /bin/sh myscript
> > > > >
> > > > > But not by
> > > > > ./myscript
> > > > >
> > > > > Even though I
> > > > > chmod +x myscript
> > > > >
> > > > > What am I missing?
> > > >
> > > > you're missing any information that can help us help you.
> > >
> > > *** Yes, sorry.
> > > >
> > > > what error message do you get?
> > > *** -sh: ./makeemail: not found
> >
> > odd this seems like a filesystem error.  what fs are you using?
> >
> > > >
> > > > what busybox shell are you using?
> >
> > or else it's a shell error.  are you using ash?
> >
> > paul
> >
> > > >
> > > > what version of busybox?
> > > *** BusyBox v1.00 (2005.06.29-07:42+0000) multi-call binary
> > > >
> >
> > =---------------------
> > paul fox, pgf@brightstareng.com
> > _______________________________________________
> > busybox mailing list
> > busybox@busybox.net
> > http://busybox.net/cgi-bin/mailman/listinfo/busybox
> >
>
>  ------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
>

[Attachment #5 (text/html)]

Here is a different/better question.&nbsp; You have the full bash on your \
system.&nbsp; Why not link /bin/sh to that, rather than using busybox for your \
shell?<br><br><div><span class="gmail_quote">On 2/24/06, <b class="gmail_sendername"> \
Angus Comber</b> &lt;<a \
href="mailto:angus@iteloffice.com">angus@iteloffice.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div><font face="Arial" size="2">I have tried</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">#!/bin/bash</font></div>
<div><font face="Arial" size="2">#!/bin/bash</font></div>
<div><font face="Arial" size="2">#!/bin/ash</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">script contents:</font></div>
<div><font face="Arial" size="2">#!/bin/sh</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"># This script sends the asterisk call log to <a \
href="mailto:angus@mydomain.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">angus@mydomain.com<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">cp email1backup email1<br>cat 
/mnt/kd/cdr-csv/Master.csv &gt;&gt; email1<br>cat email3 &gt;&gt; email1<br>cat 
email1 | ssmtp <a href="mailto:angus@mydomain.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">angus@mydomain.com<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">exit 0</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">pbx Itel # cat 
/etc/shells<br>/bin/bash<br>/bin/ash<br>/bin/sh<br>pbx Itel #</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div>echo $SHELL<br>/bin/sh<br></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">pbx /bin # ls -l<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 Dec&nbsp; 8 
06:09 addgroup -&gt; ../usr/sbin/astwrap<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 Dec&nbsp; 8 
06:09 adduser -&gt; ../usr/sbin/astwrap<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 ash -&gt; busybox<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 475948 Feb 
24&nbsp; 2005 bash<br>-rwsr-xr-x&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 565388 Jun 
29&nbsp; 2005 busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 cat -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 chgrp -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 chmod -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 chown -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 cp -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 cpio -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 date -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 dd -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 Dec&nbsp; 8 
06:09 delgroup -&gt; ../usr/sbin/astwrap<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 Dec&nbsp; 8 
06:09 deluser -&gt; ../usr/sbin/astwrap<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 df -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 dmesg -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 echo -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 egrep -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 false -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 fgrep -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 grep -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 gunzip -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 gzip -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 hostname -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 ip -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 ipaddr -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 iplink -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 iproute -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 iptunnel -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 kill -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&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Dec&nbsp; 8 06:09 mount -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 mv -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 netstat -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 pidof -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 ping -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 ps -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 pwd -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp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sp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 su -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 sync -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 tar -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 touch -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 true -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 umount -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 uname -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 uncompress -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 usleep -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 vi -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 watch -&gt; busybox<br>lrwxrwxrwx&nbsp;&nbsp;&nbsp; 1 
root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
Dec&nbsp; 8 06:09 zcat -&gt; busybox<br>pbx /bin #<br></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">filesystem is ext2</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">file is called makeemail</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">pbx Itel # ls makeemail 
-l<br>-rwxrwxrwx&nbsp;&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 212 Feb 24 08:16 
makeemail<br>pbx Itel #</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I am logged in as root when running 
this.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Hope this helps.</font></div><span class="sg">
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Angus</font></div>
<div><font face="Arial" size="2">&nbsp;</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
</span><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; \
padding-left: 5px; margin-left: 5px; margin-right: 0px;"><span class="q">  <div \
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">----- Original Message ----- </div>  <div style="background: rgb(228, 228, \
228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; \
-moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; \
font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; \
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> \
<b>From:</b>   <a title="floydpink@gmail.com" href="mailto:floydpink@gmail.com" \
target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Jason   \
Schoon<img class="targetalert" style="border: 0px none  ! important; margin: 0px 0px \
-3px 5px ! important; padding: 0px ! important; display: inline ! important; \
background-color: transparent ! important; width: auto ! important; height: auto ! \
important; float: none ! important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; \
font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; \
font-stretch: normal;"><b>To:</b> <a title="pgf@brightstareng.com" \
href="mailto:pgf@brightstareng.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)"> Paul Fox<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; \
font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; \
font-stretch: normal;"><b>Cc:</b> <a title="busybox@mail.busybox.net" \
href="mailto:busybox@mail.busybox.net" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)"> busybox@mail.busybox.net<img \
class="targetalert" style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! \
important; padding: 0px ! important; display: inline ! important; background-color: \
transparent ! important; width: auto ! important; height: auto ! important; float: \
none ! important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; \
font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; \
font-stretch: normal;"><b>Sent:</b> Thursday, February 23, 2006 7:23   PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; \
font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; \
font-stretch: normal;"><b>Subject:</b> Re: Why if I chnod +x my script   can I not do \
./myscript ?</div>  <div><font face="Arial" size="2"></font><font face="Arial" \
size="2"></font><font face="Arial" size="2"></font><br></div></span><div><span \
class="e" id="q_1099b266b5e124b1_4">Do you have #!/bin/bash at the top, rather   than \
#!/bin/sh?<br><br>As Paul noted, much more information would make this   much easier \
to diagnose.&nbsp; Contents of the file, type of shell(s) built   into Busybox, \
default shell selected for Busybox, 'ls' of /bin, etc.   <br><br><br><br>
  <div><span class="gmail_quote">On 2/23/06, <b class="gmail_sendername">Paul 
  Fox</b> &lt;<a href="mailto:pgf@brightstareng.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">pgf@brightstareng.com<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a>&gt; 
wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">[   replying to the list.]<br><br>&gt; \
&gt; &gt; Hello<br>&gt; &gt; &gt;<br>&gt;   &gt; &gt; I can run my script if I \
do<br>&gt; &gt; &gt; /bin/sh   myscript<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; But not \
                by<br>&gt; &gt; &gt; 
    ./myscript <br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Even though I<br>&gt; &gt; 
    &gt; chmod +x myscript<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; What am I 
    missing?<br>&gt; &gt;<br>&gt; &gt; you're missing any information that can 
    help us help you. <br>&gt;<br>&gt; *** Yes, sorry.<br>&gt; &gt;<br>&gt; &gt; 
    what error message do you get?<br>&gt; *** -sh: ./makeemail: not 
    found<br><br>odd this seems like a filesystem error.&nbsp;&nbsp;what fs are 
    you using?<br><br>&gt; &gt; <br>&gt; &gt; what busybox shell are you 
    using?<br><br>or else it's a shell error.&nbsp;&nbsp;are you using 
    ash?<br><br>paul<br><br>&gt; &gt;<br>&gt; &gt; what version of 
    busybox?<br>&gt; *** BusyBox v1.00 (2005.06.29-07:42+0000) multi-call binary 
    <br>&gt; &gt;<br><br>=---------------------<br>paul fox, <a \
href="mailto:pgf@brightstareng.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">pgf@brightstareng.com<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> \
</a><br>_______________________________________________<br>busybox   mailing \
list<br><a href="mailto:busybox@busybox.net" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">busybox@busybox.net<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a><br><a \
href="http://busybox.net/cgi-bin/mailman/listinfo/busybox" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://busybox.net/cgi-bin/mailman/listinfo/busybox</a><br></blockquote></div><br>


  </span></div><p>
  </p><hr><span class="q">

  <p></p>_______________________________________________<br>busybox mailing 
  list<br><a href="mailto:busybox@busybox.net" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">busybox@busybox.net<img class="targetalert" \
style="border: 0px none  ! important; margin: 0px 0px -3px 5px ! important; padding: \
0px ! important; display: inline ! important; background-color: transparent ! \
important; width: auto ! important; height: auto ! important; float: none ! \
important; z-index: 10 ! important;" \
src="chrome://targetalert/content/skin/outlook.png"> </a><br><a \
href="http://busybox.net/cgi-bin/mailman/listinfo/busybox" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://busybox.net/cgi-bin/mailman/listinfo/busybox</a></span><p></p></blockquote>



</blockquote></div><br>



_______________________________________________
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