LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .*BIN files problem (https://www.linuxquestions.org/questions/linux-software-2/%2Abin-files-problem-158059/)

e-nDrju 03-15-2004 02:31 PM

.*BIN files problem
 
hi
i want to install java virtual machine. i have downloaded file with a BIN extension. when I want to open it, slackware says: Permission denied. I was logged by root of course. I have the same situation with *.sh scripts. What should I do? Thx for help.

skel 03-15-2004 02:43 PM

you have to change the permissions of the file to execute
chmod 777 filename will work
man chmod to learn more

same goes for shell scripts (.sh) files, but they might not have the shbang line at the top (#!/bin/sh) this line specifies the interpretor.

So if you have given yourself execute permissions with chmod and it still doesn't work then try:
sh file.sh

this run sh as the interpretor for file.sh

skel

e-nDrju 03-15-2004 03:31 PM

thanks a lot. that was very helpful


All times are GMT -5. The time now is 03:13 PM.