Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-30-2009, 07:58 AM   #1
LQ Newbie
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
How can i execute shell script from firefox?

Hello all,

How can i execute shell script from web browser?

For example:

<a href="">test2</a>

<a href="gnome-terminal --execute  sh">test2</a>

Any help would be much appreciated.
Old 09-30-2009, 08:13 AM   #2
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Rep: Reputation: 44
Perhaps you could set Firefox's default application for handling .sh files to /bin/bash. Then you could run it by pointing Firefox to the URL file:///path/to/your/

But why do you want to do this in the first place? There might be a better solution to your problem.

--Jesse Taylor
Old 09-30-2009, 08:25 AM   #3
LQ Newbie
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
well i just moved to Linux so i am trying alot of things Thx for the tip work grate.
Old 09-30-2009, 10:13 AM   #4
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 406

Rep: Reputation: 81
you could at least indirectly have firefox or for that
matter other web browsers execute shell scripts.

I set google as the default email client in opera and firefox
by selecting the mailto protocol in the preferences and
selecting as the default program a shell script that I wrote.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
cannot execute script file from shell shahrahulb Linux - General 4 03-04-2008 07:02 AM
execute shell script in KDE Lotharster Linux - Newbie 1 11-21-2005 06:02 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 01:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM

All times are GMT -5. The time now is 09:11 AM.

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