Why if I chnod +x my script can I not do ./myscript ?

Jason Schoon floydpink at gmail.com
Thu Feb 23 19:23:57 UTC 2006


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 at 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 at brightstareng.com
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060223/6858bf59/attachment-0002.htm 


More information about the busybox mailing list