[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: -/bin/sh: xxx: not found
From: Rob Landley <rob () landley ! net>
Date: 2008-10-22 3:11:58
Message-ID: 200810212211.59318.rob () landley ! net
[Download RAW message or body]
On Monday 20 October 2008 06:54:01 stanliao wrote:
> Hi,
>
> I put some applications into my ramdisk, which is the root filesystem. When
> I try to run one of the application, say smbpasswd, "bin/sh" shows the
> following message:
>
> # smbpasswd -a ftpusers
> -/bin/sh: smbpasswd: not found
> #
> #
Did you try running /bin/smbpasswd without using $PATH? (If you get the
same "not found" it's probably /lib/ld-linux.so.2 or equivalent not being
found.)
> However, the "which" command can find it:
> # which smbpasswd
> /bin/smbpasswd
>
> What might be the problem while one command can be found by which but can't
> be executed by?
Well, with bash, set +h is kind of useful to disable path cacheing if you're
modifying the files in $PATH without changing $PATH. Probably not the issue
here...
Rob
_______________________________________________
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