Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Simple Perl print() output redirect to html/webpage.

by hmb104 (Sexton)
on Sep 03, 2012 at 17:48 UTC ( [id://991494]=note: print w/replies, xml ) Need Help??


in reply to Re: Simple Perl print() output redirect to html/webpage.
in thread Simple Perl print() output redirect to html/webpage.

My problem with using PHP passthru() is that it uses the user nobody to execute. The user nobody doesn't have write access & also PGP will not work with nobody and it is not recommended to give such access to nobody.

My script returns 6 lines of print() statements, I dont want to make it a CGI script and add all the CGI related info to it. Can I create another CGI script and call it from within just to print my lines?

  • Comment on Re^2: Simple Perl print() output redirect to html/webpage.

Replies are listed 'Best First'.
Re^3: Simple Perl print() output redirect to html/webpage.
by aitap (Curate) on Sep 03, 2012 at 18:11 UTC
    Can I create another CGI script and call it from within just to print my lines?
    Why not? You can use the backtick operator or do + Capture::Tiny to get the stdout of your script.
    Sorry if my advice was wrong.

Log In?
Username:
Password:

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

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

    No recent polls found