LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-13-2005, 04:16 AM   #1
petezilla
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 10.1
Posts: 16

Rep: Reputation: 0
executable programs


Hello, I'm trying to get a program that I installed to have an assigned command to run it.....in other words I can open it through a terminal with "/root/.firefox/firefox" but since I didnt install it from a package it doesnt just run from the command "firefox". There is an executable file in there, and i tried copying it to /usr/bin but it didnt make a difference. I'd appreciate if anybody can help me if they know what im talking about.

The reason why is so I can put it into Gaim as my default browser to open links, it needs a command like: "firefox -e %s" (%s insterts the link adress) but that wont work, and neither will "/root/.firefox/firefox %s" which is the command i use to run it in terminal.

Last edited by petezilla; 04-13-2005 at 04:17 AM.
 
Old 04-13-2005, 04:39 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
instead of copying tha fule make a symlink from that location

like i have firefox in /plugins/firefox-installer so i run this

ln -s /plugins/firefox-installer/firefox /usr/bin/firefox

regards
 
Old 04-13-2005, 04:46 AM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
you could make a simple script

Code:
#!/bin/bash

/root/.firefox/firefox
and call it myfirefox.sh

then make it executable by typing : chmod a+x myfirefox.sh

then copy it to /usr/bin

then add
alias myfirefox="/usr/bin/myfirefox.sh"

to your $HOME/.bashrc

now when you type myfirefox in the terminal it will launch your script

Last edited by heema; 04-13-2005 at 04:48 AM.
 
Old 04-13-2005, 05:08 AM   #4
petezilla
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by masand
instead of copying tha fule make a symlink from that location

like i have firefox in /plugins/firefox-installer so i run this

ln -s /plugins/firefox-installer/firefox /usr/bin/firefox

regards
thank you very much sir, this did just the trick
 
Old 04-13-2005, 02:53 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Quote:
Originally posted by petezilla
thank you very much sir, this did just the trick
glad that it worked
 
Old 04-13-2005, 06:09 PM   #6
petezilla
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Darn, okay so that worked.....now there's another problem. Now Gaim won't use my command "firefox %s" as command for Gaim to open links in Firefox......i opened up the debug window so I could see the command it used for Opera, which was "opera -newpage %s" and then I checked in terminal and in the KDE application launcher if the command "firefox http://www.somewebpage.com" would open that page up in firefox, and it did. So I dont think that im missing any arguments for that command. Why wont Gaim use that command to open links? Ironically, this is why I wanted to assign a command to firefox in the first place. Thanks to anybody who can help.
 
Old 04-13-2005, 07:36 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
As a quick syntax check, open a terminal and type
Code:
$ firefox --help
to get the list of Firefox command line options. Note that "-e" is not a valid option.
 
  


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
Running a Java executable class from another executable class LUB997 Programming 22 07-24-2005 05:57 AM
Executable problems chansen0421 Linux - Newbie 2 07-21-2004 12:02 PM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 01:02 PM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 04:45 PM
How to run programs using executable name ravykanth Linux - Newbie 1 10-06-2003 12:45 AM

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

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