On Wed, Jan 31, 2001 at 01:21:15PM +0000, richard wrote:
> noting the comments made about using this a as free support service , I'm 
> probally going to get flamed for asking this one !

At least not by me :-)

> 
> starting executable script in Mandrake , are there any major differences 
> between mandrake and redhat ?
> ie if a script is executable as root, and is shown so from a  "ls -l"
>  and if say the file was called "fred"  is there a reason I should 
> get the response " bash:  ./fred :no such file or directory".
> I'm porting a system over from Suse 7.0 , there's nothing I can see in 
> these scripts to cause this.
> 

Well, this does not mean the fred script is not executable. Look at the
little 'bash' at the beginning of the error message. It means it is an
bash error. And it most probably is the first line of your script which is
at fault : often scripts begin with lines like #!/bin/sh or
#!/usr/bin/perl -w ... If the file indicated here doesn't point to a valid
file in your system, you get this kind of errors. Check in that direction.

Hope this helps,

Pascal Grosse

Reply via email to