Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by hmb104 (Sexton)
on Sep 03, 2012 at 17:48 UTC ( #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.
Re^3: Simple Perl print() output redirect to html/webpage.
by aitap (Deacon) 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
Node Status?
node history
Node Type: note [id://991494]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-11-23 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls