<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>"
In reply to Execute unix command thro' perl in windows by mailtogpriya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |