Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: triggering a program in web server

by bm (Hermit)
on Aug 18, 2003 at 10:41 UTC ( #284534=note: print w/ replies, xml ) Need Help??


in reply to triggering a program in web server

The first question that comes to my mind is: why do you need two scripts for this? The public cannot read your cgi-script (assuming a correctly configured webserver and filesystem permsissions).

Having said that....

Simply call your 2nd program like any other system call ( system, exec, ...) from within your first script.

Be aware that if you do call an external program, you should:

  • read  perldoc perlsec carefully
  • definitely enable taint checking (perl -T)
    --
    bm
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://284534]
    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: (4)
    As of 2016-08-28 20:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      The best thing I ever won in a lottery was:















      Results (395 votes). Check out past polls.