Maybe you don't have execute permisions set for this file?
In a terminal window as root try typing this:
#ls -l
Your file permisions should be something like
-rw------- 1 root root 921 Dec 6 17:59 anaconda-ks.cfg
-rw------- 1 root root 1571 Dec 6 17:59 Centos5-5.ks-log
drwxr-xr-x 2 root root 4096 Dec 9 19:05 Desktop
drwxr-xr-x 2 root root 4096 Feb 7 12:25 eagle
To set a files permissions to execute the file, as root user do:
#chmod 777 filename
Then try and run the script again.
HTH
---------- Post added at 19:38 ---------- Previous post was at 19:30 ----------
You might find it helps to install the program called mc - Midnight Commander.
As root user do:
#yum info mc
then
#yum install mc
Then you can open a terminal window as root user, and run the command mc as root user.
There are alot of commands you can then access from mc drop down windows.
---------- Post added at 20:44 ---------- Previous post was at 19:38 ----------
The other thing it might be is this.
On Centos 5.5, (which is a clone of RHEL,) there is a soft link (symlink) from the directory /bin/sh to the bash shell command interpreter:
lrwxrwxrwx 1 root root 4 Dec 6 17:31 sh -> bash
You might not have this link in your /bin directory.
If you open the script SETUP.SH in a text editor, you can check the first line for something like this:
#! /bin/sh
That first line points to the command interpreter that should run your SETUP.SH script.
Find out where bash is on your system, and edit the first line of your SETUP.SH script to point to bash.
Something like this should do:
#! /bin/bash
mc has a find file function built in, under F9->Command->Find file
An easier way to find a file is with the 'which' command, like this:
[root]# which bash
/bin/bash
that gives you the full path to the file, which in this case is the bash interpreter, a successor of the sh shell.
To see what commands are available on your system, for example, type whi then press the TAB key quickly TWICE:
Code:
[root]# whi
which while whiptail
[root]# mk
mkafmmap mkfontdir mkinitrd mktemp
mkbootdisk mkfontscale mkisofs mktexfmt
mk_cmds mkfs mklost+found mktexlsr
mkdict mkfs.cramfs mkmanifest mktexmf
mkdir mkfs.ext2 mknod mktexpk
mkdirhier mkfs.ext3 mkocp mktextfm
mkdosfs mkfs.msdos mkofm mkudffs
mkdumprd mkfs.vfat mkrfc2734 mk_verilog_syms
mke2fs mkhtmlindex mksmbpasswd.sh mkxauth
mkfastmod mkhybrid mksock mkzftree
mkfifo mkindex mkswap
HTH