Perl and CGI

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentPerl and CGI

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old April 1st, 2013, 12:47 PM
ballu ballu is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 1 ballu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 46 sec
Reputation Power: 0
Form creation and running shell script

Hi All,

I am new to web programming and kindly need your help.


I need to create a form with around five fields and multiple hidden variables.
You can use only one regular and one hidden variables for example. on a click of the submit button on the form, a text fille will be created and will upload that file on the remote server through scp (I have keys setup).

Now lets say form has one field server name. User enters server name (myservername) and clicks submits. I need the server name and the hidden variable on that text file like below.


blah_blah_blah=myservername
blah_blah_blah=myhiddenvariable

once the input text file (myinput.txt) is created and coppied to the remote server dir on the click of the submit. I need another button on that form like runscript. On a click of a run script I need to run a shell script on the remote server which uses myinput.txt as input.

on remote server:

/dir/myscript.sh /tmp/myinput.txt

I need to display the output generated by the shell script on the web page

Thanks in advance for all the help.


ballu.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPerl and CGI > Form creation and running shell script


Developer Shed Advertisers and Affiliates


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap