LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2006, 11:23 PM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
calling from command line


hi
how can I called firefox from the command line, so when I type firefox in command line firefox will fire up
Thank You
 
Old 01-20-2006, 12:13 AM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
As long as:
firefox is installed
the exacutable is in your PATH (etc/profile)
you have permissions to run it (which you should)
your in X:

open up a console and type ' firefox ' . Worked for me.
If either this doesn't work, or I misunderstood your question,
post back.
-tw
 
Old 01-20-2006, 12:36 AM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
when I type firefox in command line it says command not found
what I'm trying to do is to open command line then type firefox then firefox starts
 
Old 01-20-2006, 12:49 AM   #4
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
try this, type :
find / -name "firefox"

Your results should include the line:
/usr/bin/firefox (<-- default install location in slack 10.2)

If its found, then type:
/usr/bin/firefox
If it works, then you need to make sure /usr/bin is in your path.
(see above post) OR you can add a alias in your .bashrc file, Or.....

If it doesn't work, it may not be exacutable from some really odd reason,
or something equally unexpcted.
I'm guessing you can start it by an clicking on an icon, right?
-tw

Last edited by tw001_tw; 01-20-2006 at 12:51 AM.
 
Old 01-20-2006, 01:09 AM   #5
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
this is what I got when I try find -name firefox in /
./usr/bin/firefox
./usr/lib/firefox
./usr/lib/firefox/firefox

when I type /usr/bin/firefox no such file or directory
the only way i can run firefox is by going to /usr//lib/firefox and click firefox from there
 
Old 01-20-2006, 01:33 AM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Take a look at the 'alias' command -- it can help you without you needing to change your path, if you want
 
Old 01-20-2006, 04:44 AM   #7
pitom
LQ Newbie
 
Registered: Dec 2005
Location: Malmo, Sweden
Posts: 12

Rep: Reputation: 0
If you find where the firefox is go there and type it in the following way:

./firefox


You need to have "./" before name of the program.

Otherways you get the error:
command not found

gl
/piotr
 
Old 01-22-2006, 06:07 PM   #8
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
thanks, I have it fix now
I have to tell it where I extract firefox
 
Old 01-22-2006, 06:09 PM   #9
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
try
Code:
mozilla-firefox
should work
 
  


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
calling system command in daemon csfalcon Programming 2 05-13-2005 12:17 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
C++ calling linux command grabbing output wilso027 Programming 7 04-23-2004 08:19 AM
calling command line functions in java darthczyz Programming 2 12-09-2003 08:01 AM
C program code calling a Linux system command Linh Programming 1 06-05-2003 02:44 PM


All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration