LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running .bin files (https://www.linuxquestions.org/questions/linux-software-2/running-bin-files-34785/)

pyropenguin 11-06-2002 10:07 PM

running .bin files
 
for some reason, and im sure its a easy to fix one, i cant run bin files from the console window, i used to be able to, i used the ./filename, and now it tells me that i dont have permission so i used the su command and then tried it and i still dont have permission so i logged on as root, and it still says i dont have persmission, right now im trying to run the java bin file and the ut2003 demo file which is a bin too, and it cant run them, should i just reinstall or can someone help?

deadbug 11-06-2002 10:16 PM

Are these files on your hard drive or another drive?

When you issue the command 'ls -l' what are the file properties on the left side?

pyropenguin 11-06-2002 10:21 PM

they are on my hard drive and they have the rw which means i can read and write so i dont see where the problem is, this is frusturatiing!

trickykid 11-06-2002 10:55 PM

Shouldn't they be executable to run ?? Have you tried to make them executable then tried them ?

Thymox 11-07-2002 06:21 AM

chmod +x filename.bin followed by
./filename.bin
In Linux (as in most, if not all, *nix setups) files need to be set as eXecutable before you can run them.

deadbug 11-07-2002 09:03 AM

I go to bed and you guys steal my thunder!

Pyropenguin, make sure you understand trickykid's question. Unlike MS-DOS/Windows, where the operating system assumes certain file extensions are executable (.bat, .exe and .com), Linux looks at the file properties to determine if the file is executable and if the current user has permission to execute it.

The command that Thymox gave you is the most likely answer--it is what all three of us were pointing you at. In a shell, type 'man chmod' and you'll get several pages on this useful little command. If you're not familiar with the man pages, you exit them by pressing 'q'.

One final note. You said they have 'the rw'--did you only see one set (there should have been two or three)? If so, you will probably have to issue chmod as root.

Let us know whether or not this works

pyropenguin 11-07-2002 05:00 PM

i tried the chmod -x and then ./filename and it didnt work, i mean is the x supposed to be like a variable where i put something else in or not, because i tried it, and i still get the same message about how i do not have permission

pyropenguin 11-07-2002 05:02 PM

and on another note, about the rw next to it, i have copied and pasted what happens after i did that
drwx------ 6 Adam Adam 4096 Nov 7 16:39 evolution
-rw------- 1 Adam Adam 21310600 Nov 6 21:45 j2re-1_4_0_02-linux-i586-rpm.bin
drwxrwxr-x 2 Adam Adam 4096 Nov 7 11:24 setiathome
-rw-rw-r-- 1 Adam Adam 89204 Nov 5 21:52 tuXperience~2.jpg
-rw-rw-r-- 1 Adam Adam 222783 Nov 5 22:52 tuxwhitebig.jpg
-rw-rw-r-- 1 Adam Adam 98801732 Sep 13 23:53 UT2003-Demo-Linux.sh.bin

the one im trying to do it to is unreal tournament and the jre2 java one, hopefully this will help you help me!

Thymox 11-07-2002 06:58 PM

Yeah, the problem is that you seem to have typed 'minus x' whereas you're supposed to type 'plus x'... re-read my post above.


All times are GMT -5. The time now is 07:01 PM.