For example:
#!/usr/bin/perl use strict; use warnings; use CGI qw(header); print header(-type=>'text/plain'); print qx(who);
But you want to be very careful what commands you allow people to execute from a web page.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: using CGI to output a system command
by davorg
in thread using CGI to output a system command
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |