LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-20-2004, 07:16 AM   #1
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Rep: Reputation: 30
Talking executing from command line


This question will prove how much of a linux dummy I am:

How do I execute a program (not in the bin directory) from the command line. Its just telling me "command not found"
 
Old 01-20-2004, 07:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
also clearly nothing to do with programming. moved...

if you are running a program that is not on your path variable, you muct precede it with the full (or relavite path) e.g. "/var/stuff/program" or in the same directory you are in at the time "./program"
 
Old 01-20-2004, 07:33 AM   #3
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Original Poster
Rep: Reputation: 30
thanks alot
 
Old 01-20-2004, 11:30 AM   #4
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
You can always setup a symbolic link to the executable in one of your paths, or you can add/alter your paths to reflect the location of the original executable.

ln -s /path/to/executable /usr/bin/

something like that. ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
executing a command at a certain time pantera Programming 6 04-05-2005 01:22 PM
Problem executing from command line jleyba213 Linux - General 4 04-09-2004 01:43 PM
PostgreSQL: executing a .SQL file from command line? J_Szucs Linux - Software 0 09-25-2003 12:49 AM
::Command Executing in Webmin:: XxAndyxX Linux - Software 0 03-07-2003 02:04 PM
Executing command lines in C/C++ ReverseLogic Programming 2 05-28-2002 03:08 PM


All times are GMT -5. The time now is 12:05 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration