5 b)
Write a Perl program to accept UNIX command from a HTML form and to display the output of the command executed.
5b.html
<html>
<body>
<form action="http://localhost/cgi-bin//5b.pl">
<input type="text" name="com">
<input type="submit" name="submit">
</form>
</body>
</html>
5b.pl
#! C:/perl/bin/perl -w
use CGI ':standard';
print "content-type: text/html \n\n";
$c=param('com');
system($c);
exit(0);
Write a Perl program to accept UNIX command from a HTML form and to display the output of the command executed.
5b.html
<html>
<body>
<form action="http://localhost/cgi-bin//5b.pl">
<input type="text" name="com">
<input type="submit" name="submit">
</form>
</body>
</html>
5b.pl
#! C:/perl/bin/perl -w
use CGI ':standard';
print "content-type: text/html \n\n";
$c=param('com');
system($c);
exit(0);
No comments:
Post a Comment