LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-18-2010, 07:09 AM   #1
solo9300
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
How to run Shell Script from a browser!


hello all,

How to run Shell Script from a browser using External Protocol request ?

i try this however it did work
Code:

Code:
   
    < a href="sh:/path/of/my/script.sh"  >YourLinkText< / a >
my problem is i have a list of shell scripts that i know where there are(list them in html file)! and i would like to be able to execute them by click on the link. i know there is a way to run an App using a browser (fake protocol).

Any help would be much appreciated.
 
Old 04-18-2010, 10:14 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
You should be able to create a shell script cgi which could run the scripts on your behalf
 
Old 04-18-2010, 10:32 AM   #3
solo9300
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
You should be able to create a shell script cgi which could run the scripts on your behalf
thx for replying however could you explain more!
 
Old 04-18-2010, 10:36 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
You can't run external scripts just by calling them in your html.. you need a cgi of some kind to do the calling for you
 
  


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
in bash shell how to run shell script during startup rammohan04 Red Hat 2 07-31-2009 03:07 AM
MySQL Updates With Null When Perl Script Run From Shell Script ThisGuyIKnow Programming 6 08-12-2008 10:56 AM
Restrict a Shell Script to run from a shell bharaniks Linux - Security 7 08-26-2007 11:57 PM
run shell script bash from browser with php achilles Programming 10 08-02-2007 04:44 PM
.sh Script to run another via browser GetMooked Linux - Software 1 05-12-2005 05:41 PM


All times are GMT -5. The time now is 04:48 PM.

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