mailtogpriya has asked for the wisdom of the Perl Monks concerning the following question:
<html> <head><title>Commands</title> </head> <body> <form action = "http://localhost/cgi-bin/Perlprogs/unix.pl" method="ge +t"> <input type="text" name= "t1" /> <br /> <input type="submit" value="command" /> </form> </body> </html> unix.pl #!"D:/xampp/perl/bin/perl" print "Content-type: text/html \n\n", "<html>"; "<head><title>command</title></head><body><p>\n"; use CGI ':standard'; my $cmd= param('t1'); $re=system($cmd); print "<h1>result </h1> <br /> $re <br /> </p></body></html>"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execute unix command thro' perl in windows
by marto (Cardinal) on Feb 13, 2012 at 10:35 UTC | |
|
Re: Execute unix command thro' perl in windows
by choroba (Cardinal) on Feb 13, 2012 at 10:37 UTC | |
|
Re: Execute unix command thro' perl in windows
by JavaFan (Canon) on Feb 13, 2012 at 10:37 UTC |