LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ways to run a program... (https://www.linuxquestions.org/questions/linux-newbie-8/ways-to-run-a-program-162307/)

RichardSimmons 03-25-2004 02:06 PM

Ways to run a program...
 
Heh, keep in mind im a :newbie:

The olny way i know of running progarms is sh. Recently i installed Mudix a mud program for text based games. The readme says type "mudix <site> <port>" i filled in the fields and entered it, it said command not found. In the terminal the mudix file shows up as green. So, i tried "sh mudix" witch diddent work. So now what? any help would be grand thanks =]

Genesee 03-25-2004 02:09 PM

use "ls -l" to check if its executable

could try ./filename to tell shell to execute in current directory...

RichardSimmons 03-25-2004 02:13 PM

heh somone told me there was no differnce in
./ and sh
thanks =]

Demonbane 03-25-2004 02:15 PM

you can't execute binaries with "sh"

Genesee 03-25-2004 02:21 PM

should add that the "./" is just telling the shell where to look for the file - that presumes the file is in the pwd when you run it

you could also use the full absolute path (eg, /home/richard/progs/filename) or you could create a link to the executable in a dir. that is in your path. check your path by typing "env"


All times are GMT -5. The time now is 06:15 PM.