Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using CGI to output a system command

by davorg (Chancellor)
on Aug 02, 2005 at 14:13 UTC ( [id://480194]=note: print w/replies, xml ) Need Help??


in reply to using CGI to output a system command

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.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found