[Ilugc] passing html values to shell script

  • From: ganeshacomputes@xxxxxxxxx (Ashwin Dixit)
  • Date: Sun, 19 May 2013 23:11:58 -0700

On Sun, May 19, 2013 at 11:02 PM, hari prasadh <hariprasadh89 at 
gmail.com>wrote:

Hi Everyone,

Can somebody provide some sample program in detail how to pass html values
to shell script.

<form name="input" action="create_job.sh" method="get">
Username: <input type="text" name="user">
Password: <input type="text" name="pass">
JobName: <input type="text" name="jobname">
<input type="submit" value="Submit">
</form>

Passing those values to shell script.



I don't mind helping people with difficult problems, but this is an easy
one.
Learn to use Google, my friend.

Here's a hint: Google for "CGI" and "shell script"

My suggestion is to abandon shell scripting altogether, and learn Perl.
Perl is much more sophisticated!
With modules like CGI.pm ( ancient, elegant, robust ) Perl is better suited
for web programming than shell.

Cheers,

- Ashwin.

=================================================
Subvert the dominant paradigm. Repeat as desired.
http://ownlifeful.com/

Other related posts: