Hi
I think mandrake is based on Redhat but dont quote me! There are
differences like the types of packages
included but thats about it. Im sure there are "Bigger Differences under the
hood" but the distros are all
based on the same basic kernel. Anyway...
It sounds like your path to the shell is set wrong in your script check this
by doing this
head fred (or what ever your script is)
look at the first line in the file
#!/bin/sh or what ever
then use which to find the shell on your system
which sh
/usr/bin/sh
now ammend the line at the top of your script to solve the problem !
regards
Peter Church
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 !
>
> 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.
>
> Any one got a idea to point me in the right direction
>
> Thanks
> Richard