LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2004, 02:06 PM   #1
RichardSimmons
Member
 
Registered: Feb 2004
Distribution: Red Hat Linux 9
Posts: 61

Rep: Reputation: 15
Ways to run a program...


Heh, keep in mind im a

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 =]
 
Old 03-25-2004, 02:09 PM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
use "ls -l" to check if its executable

could try ./filename to tell shell to execute in current directory...
 
Old 03-25-2004, 02:13 PM   #3
RichardSimmons
Member
 
Registered: Feb 2004
Distribution: Red Hat Linux 9
Posts: 61

Original Poster
Rep: Reputation: 15
heh somone told me there was no differnce in
./ and sh
thanks =]
 
Old 03-25-2004, 02:15 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
you can't execute binaries with "sh"
 
Old 03-25-2004, 02:21 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
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"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ways to run programs on startup digitalbrutus Linux - Software 3 08-26-2005 05:07 AM
Ways To Run Windows & Linux Same Time megadeth Linux - Software 1 03-13-2005 05:45 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM
How do I run a program? rtstar Linux - Newbie 2 07-25-2003 09:08 AM
Program won't run Scerj Linux - General 2 11-05-2001 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration