Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Invoking a cgi script from another cgi script using system()

by bibliophile (Parson)
on Dec 31, 2014 at 21:33 UTC ( #1111861=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    my @args = ("animal=duck", "vegetable=carrot");
    system("/usr/bin/perl", "/tmp/b.cgi", @args);
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    print "b.cgi argv dump:\n";
    print join(',', @ARGV);
    print "\n";
    
  3. or download this
    Content-type: text/plain
    
    ...
    </ul>
    b.cgi argv dump:
    animal=duck,vegetable=carrot
    
  4. or download this
    b.cgi query dump:
    <ul></ul>
    b.cgi argv dump:
    animal=duck,vegetable=carrot
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1111861]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-10-25 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?