The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running SQL Scripts from Shell script - Need insight! manthasirisha Shell Programming and Scripting 6 07-03-2006 11:55 PM
unix shell scripts for running on solaris srini_ibmadmin UNIX for Advanced & Expert Users 3 06-07-2006 04:28 AM
running vendor shell scripts Javagate UNIX for Dummies Questions & Answers 1 04-13-2004 03:07 PM
Running shell scripts on a remote server pepintheshort UNIX for Dummies Questions & Answers 2 07-22-2003 05:20 PM
Cron running shell scripts. cfoxwell UNIX for Dummies Questions & Answers 3 09-26-2001 12:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2006
corleone corleone is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 12
Running shell scripts from web browser

I am in need of a mechanism to run shell scripts from web browser. Could any one of you guide me as to which technology to choose? I have some scripts which take some arguments. Appreciate you response.
  #2 (permalink)  
Old 07-29-2006
jackieja jackieja is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 2
The Apache can handle this task.

Jackie,
  #3 (permalink)  
Old 07-30-2006
corleone corleone is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 12
Can you give me some more details as to how to integrate?
  #4 (permalink)  
Old 07-30-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
You can make a form and just like any other cgi script, put the script in your web server's cgi bin and point the form to it.
Something like:
Code:
<FORM METHOD=POST ACTION="http://mywebserver.com/cgi-bin/myscript.cgi">
<P><FONT COLOR="#ddd20f" FACE="Trebuchet MS"><B>Enter data to pass to script below </B></FONT><BR>
<INPUT NAME="NAME" TYPE="text" SIZE="25" VALUE="enter your data here"><BR>
</FONT</P>
<P>
<center><INPUT TYPE=submit VALUE="Send">
</center>
</p>
</FORM>
This is actually part of a working form that I use at work, just changed the names of the webserver and the script. While the script ends in .cgi, myscript.cgi is actually a korn shell script. This form passes the variable NAME to the script

Last edited by System Shock; 07-30-2006 at 05:42 PM..
  #5 (permalink)  
Old 07-31-2006
vangalli vangalli is offline
Registered User
  
 

Join Date: Jul 2006
Location: Hindusthan ( INDIA )
Posts: 18
executing unix commands thru browser!!

Hi All,
Daily I used to do some daily check on UNIX server.

I want this task to be done thru a browser.

For example:
if i open a browser i must get a screen like below...... style which must have options as follows:


UNIX Daily Check Page

commands:
bdf
ps -ef grep $someprocess
top

if user clicks the button he should get the result of the command and it must be stored in temorary buffer and final.................

a report button must be there by clicking he must be able to generate the whole output result into a single xls file..... and this has to be sent to some mailbox....................


can this be done using simple html code????


please advice................


Vangalli
  #6 (permalink)  
Old 07-31-2006
corleone corleone is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 12
Shock,
We have ksh scripts here and we get csv files as an out put. Is there a way to display all the csv files? Is there any tutorial (on CGI) on how to set this up? Appreciate your response.
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0