[SOLVED] problem executing scripts
Hi,
I have red-hat 5. I mount the cdrom and I try to execute any script of the cd-rom and it's imposible, for instance: [root@localhost pre_req]# ./check_req.sh bash: ./check_req.sh: /bin/sh: bad interpreter: Permiso denegado [root@localhost pre_req]# ls -ltr check_req.sh -rwxr-xr-x 1 725 324 56751 jul 6 22:55 check_req.sh I can't understand because if I mount the same cd-rom on suse I don't have any problema, Could you help me? thnaks a lot |
Which distribution are you running? RH5? Is this the Enterprise version?
Anyway, try running the script as an argument to sh: for example; "sh /media/cdrom/check_req.sh" The iso9660 filesystem may be mounted with the noexec option by your system. |
Quote:
thanks.. if I execute source check_req.sh it works but if the script call other if fail again. I have the version Enterpise....why do you ask me these? Thanks a lot and sorry for my english! |
Quote:
(It usually got here when files edited on DOS/Windows and then copied to Unix) I don't know why you able execute it on Suse - may be cdrom mounted with differnts options ? See 'man mount' - conv=auto may help |
Quote:
The problem was that red hat enterprise linux 5 mount the cdrom with option -noexec. Many thanks! |
All times are GMT -5. The time now is 03:06 AM. |