Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-05 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls