LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 09-30-2009, 08:58 AM   #1
solo9300
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:

Code:
<a href="test.sh">test2</a>
or

Code:
<a href="gnome-terminal --execute  sh test.sh">test2</a>

Any help would be much appreciated.
 
Old 09-30-2009, 09:13 AM   #2
jrtayloriv
Member
 
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/script.sh

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, 09:25 AM   #3
solo9300
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, 11:13 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware
Posts: 299

Rep: Reputation: 50
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.
 
  


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 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 01:21 AM
cannot execute script file from shell shahrahulb Linux - General 4 03-04-2008 08:02 AM
execute shell script in KDE Lotharster Linux - Newbie 1 11-21-2005 07:02 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 02:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 05:20 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
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