Why if I chnod +x my script can I not do ./myscript ?
Angus Comber
angus at iteloffice.com
Fri Feb 24 08:06:55 UTC 2006
see below
----- Original Message -----
From: "Paul Fox" <pgf at brightstareng.com>
To: <busybox at mail.busybox.net>
Sent: Thursday, February 23, 2006 6:18 PM
Subject: Re: Why if I chnod +x my script can I not do ./myscript ?
>[ 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?
pbx /etc # mount
/dev/hda1 on / type ext2 (ro)
none on /proc type proc (rw,nodiratime)
none on /dev type tmpfs (rw)
none on /var type tmpfs (rw)
none on /tmp type tmpfs (rw)
/dev/hdc1 on /mnt/kd type ext2 (rw,noatime)
none on /sys type sysfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
pbx /etc #
I am running from the read write device - hdc1
>
> > >
> > > what busybox shell are you using?
pbx /etc # echo $SHELL
/bin/sh
pbx /etc #
>
> 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
>
>
More information about the busybox
mailing list