Run a script from a webpage


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run a script from a webpage
# 1  
Old 11-13-2009
Run a script from a webpage

Hello,
I was trying to run a shell script when I click on webpage link. My webpage is hosted on Sun One web server.

This is something I was looking,
Chris Johnson's Test Bed

I already have my shell script and it works fine when I run it from the command line. Can somebody tell me what are the configurations that I have to make on the WebServer?
# 2  
Old 11-13-2009
First, you need to know what web server you are running (and version).

Apache 2.0?

Then, you need to follow the Apache guide to enable CGI, if you are indeed running Apache web server.
# 3  
Old 11-13-2009
We are running Sun one Web Server V 6.1
# 4  
Old 11-13-2009
Quote:
Originally Posted by grajp002
We are running Sun one Web Server V 6.1
Sorry, I am only familiar with Apache web server.

In case no one else replies, try this Google search.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing Shell Script from PHP Webpage

Hello , I am trying to execute a small shell script from a PHP Webpage. Below is the shell script : 1.sh $ cat /home/oracle/rahul/1.sh #!/bin/ksh echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt echo "Run successfully script"; Below is the PHP... (1 Reply)
Discussion started by: rahul2662
1 Replies

2. Shell Programming and Scripting

Perl Script - Sort Columns on webpage

foreach my $ds (sort { $a->{books} cmp $b->{books} || (($a->{books} eq "A") ? ($a->{hammers} cmp $b->{hammers}) : (($a->{shoes} <=> $b->{shoes}) || ($a->{hammers}... (1 Reply)
Discussion started by: scj2012
1 Replies

3. UNIX for Dummies Questions & Answers

Script to if webpage is: forbidden, Error...

I have a file with about 29,000 website names. I would like to find a script that would test if each website name is current/active or not. If not it should check if the page is: Forbidden, 404 Error... (1 Reply)
Discussion started by: dcovnton
1 Replies

4. Shell Programming and Scripting

Use Webpage to Start Script

I apologize if this is in the incorrect section, I'm not quite sure which section it should go in. Anyways... I've got a script that I'd like to be able to start with a webpage, something that just has a button that says "Start this Bot", which will start the bot and put it in the background.... (4 Replies)
Discussion started by: JoeGazz84
4 Replies

5. Shell Programming and Scripting

open a webpage through perl script

Hi All Can anyone please help me how to open a webpage suppose(Google) with the help of perl script and refresh it after every 5 minutes. (0 Replies)
Discussion started by: parthmittal2007
0 Replies

6. Shell Programming and Scripting

Read webpage from shell script

Hey experts, I am trying to read a webpage and want to search for a text patter (case insensitive). Please help me acquire this. If the text is found i will receive a mail which can be hardcoded in the script. I am not a big fan of using PERL script. Please help. Machine: AIX... (15 Replies)
Discussion started by: bankimmehta
15 Replies

7. Shell Programming and Scripting

Run webpage from cron

I am running into a issue. How would you run a http:// page from cron? I tried directly from cron but no luck. I tried a sh script with no luck. #!/bin/sh PERL_PATH=/usr/bin/perl $PERL_PATH "/fullpath/cgi-bin/search/indexer.cgi?login=indexer&pwd=spider" and #!/bin/sh... (1 Reply)
Discussion started by: mrlayance
1 Replies

8. Web Development

php script + not displaying webpage

Hi guys Im in the process of designing a website for my company which does the following 1) Daily execution a perl script. The perl script's output is diverted to a .html file. 2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio... (1 Reply)
Discussion started by: JamesGoh
1 Replies

9. Shell Programming and Scripting

Run shell commands via HTML webpage/button?

Hey guys, I got a issue here... we have a development box and a UAT box that our webmasters use, they do the webpage development on the development box and and save changed files to a particular directory on the dev machine. At a certain time of the day a cronjob kicks off and the... (3 Replies)
Discussion started by: zeekblack
3 Replies

10. Shell Programming and Scripting

Help with perl script to search webpage

i have to point out that i'm a avid shell script lover and i have next to zero interest in perl which is why i dont know the first thing about it. however, just need to do this one thing on it.. i need to do something in perl but dont know how. I have a list of email addresses in the following... (5 Replies)
Discussion started by: Terrible
5 Replies
Login or Register to Ask a Question