LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Executible (https://www.linuxquestions.org/questions/linux-newbie-8/executible-407681/)

ninpow 01-25-2006 01:40 AM

Executible
 
SUPER :newbie: Do i open executable files with a different program? Or will it run by itself? SUPER :newbie:
MADE A TYPO ON THE THREAD NAME

esje 01-25-2006 01:53 AM

You will most probably be able to run it using "./progname" in the directory containing the file.

Shell-scripts can be run with "sh progname".

You can also put it in /usr/local/bin and just do "progname".

So depending on what kind of file it is, and of course how often you're going to use it, you can do either one of the above.

ninpow 01-25-2006 02:01 AM

but when i run it, it doesn't do anything

esje 01-25-2006 02:08 AM

And exactly how dit you run it? What is it supposed to do? Are you sure you made it executable for yourself? Is it a binary file or a script you wrote? Did you get any error messages?

ninpow 01-25-2006 02:35 AM

i run it through "/progname" and it just sits there. it doesn't give me an error message

or when i try to transfer it over to the /usr/local/bin it gives me an error message saying:
"Access denied.
Could not write to /usr/local/bin/steam."

P.S. "Steam" is the executable file

BinJajer 01-25-2006 02:38 AM

Open a term, type /usr/local/bin/steam (or in most cases just steam). Remember thet *NIX shells are case-sensitive. I lost hlaf an hour trying to run vmac when I had to run VMac... LOL

sohny 01-25-2006 02:55 AM

No the dot is important.U have to give the following at the promt.
./steam

esje 01-25-2006 05:06 AM

Quote:

Originally Posted by ninpow
i run it through "/progname" and it just sits there. it doesn't give me an error message

or when i try to transfer it over to the /usr/local/bin it gives me an error message saying:
"Access denied.
Could not write to /usr/local/bin/steam."

P.S. "Steam" is the executable file

You don't have to copy it there inorder to get it to work. It's only a convenience so that you can just run it like I said above; with only the filename. If you aren't going to use it uch or if it doesn't matter much where you run it, you can keep it in your home directory and run it with ./Steam .

Anyway, good thing that you cannot write to /usr/local/bin. :) Only root should be able to write there. You can, though, put it there as root, give yourself permission to run it, and run it as a user.


All times are GMT -5. The time now is 09:43 AM.