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 11-07-2004, 06:31 PM   #1
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
Command-line trouble


I really should know better here, but then I've only been at this Linux game for a couple of weeks now.

How do I set up Firefox to start at a command? What I need to know is:

- How to get Linux to associate a shell command with an executable file (a specific shell script in this case)
and
- How to pass Firefox a URL as an argument so that it starts up in a specific webpage.

If I've used any incorrect terminology (eg. is a shell script technically executable?) please let me know, too - I don't want to en-silly myself in future

EDIT: Oh yeah, does KDE (in SuSE Personal 9.1, if it makes any difference) have a 'default browser setting'? I know it seems to favour Konqueror at the moment, but I thought I saw a box somewhere to choose your favourite browser. I can't seem to find it again, though. Does it really exist? Was it just a figment of my overworked imagination? If not, where can I find it?

Last edited by Napalm Llama; 11-07-2004 at 06:34 PM.
 
Old 11-07-2004, 06:47 PM   #2
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
for firefox ln -s /path/to/firefox /somewhere/in/your/path/firefox

or is it the other way around? try both, one way will tell you that file already exists
 
Old 11-07-2004, 06:50 PM   #3
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
Quote:
ow do I set up Firefox to start at a command? What I need to know is:

- How to get Linux to associate a shell command with an executable file (a specific shell script in this case)
and
link it to /usr/bin

Code:
ln -s foo /usr/bin/
Quote:
- How to pass Firefox a URL as an argument so that it starts up in a specific webpage.
This can't be done as far as I know

Quote:
If I've used any incorrect terminology (eg. is a shell script technically executable?) please let me know, too - I don't want to en-silly myself in future
All your terminology is correct

-Joey
 
Old 11-07-2004, 06:57 PM   #4
faralen
LQ Newbie
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
To open firefox with a specific page, this works for me:
Code:
$ firefox-bin www.linuxquestions.org
For setting the default web browser, open up 'kcontrol' (KDE Control Center), go to KDE Components->Component Chooser
 
Old 11-08-2004, 02:56 PM   #5
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
Why thankyou!

So does putting anything in /usr/bin mean that you can just refer to it on the command line?

One problem: In the KDE Control Centre there appears to be no default browser setting. There's a default email setting there (which I'm leaving as Kmail for now, unless anyone knows of anything oustandingly better) but nothing for websites...

And doesn't Firefox just spit back a load of errors at you if you try to run the binary directly? Am I doing something wrong?
 
Old 11-08-2004, 04:29 PM   #6
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
/usr/bin is one of many places in your PATH.

things in your PATH can be run from anywhere just by their filename.

echo $PATH
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
trouble with command line gilch Linux - Newbie 3 07-29-2003 08:52 AM

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

All times are GMT -5. The time now is 06:42 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