sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:


Hi Monks

If a perl embedded CGI program is running from a Apache web server. Then what is the process to terminate that program?

Just like when a perl program is running in a command prompt? Then just by doing the Ctrn C, i can terminate that program.

Plz suggest.

Regd's
Sanjay
  • Comment on How can i terminate a perl embedded CGI program running from a Apache server?

Replies are listed 'Best First'.
Re: How can i terminate a perl embedded CGI program running from a Apache server?
by puudeli (Pilgrim) on Jan 02, 2009 at 08:02 UTC

    Usually processes are killed, but if it is not a separate process from Apache you probably have to either modify the CGI program to respond to Signals or kill Apache :-)

    update: Instead of signals, a flag file could be used, or any other mean to deliver requests/orders to a process

    --
    seek $her, $from, $everywhere if exists $true{love};

      Hi puudeli

      Many many thanks for the reply. Suppose a.pl, b.pl and c.pl are running in a web browser (Which are called from the Apache server). At that time i want to terminate the a.pl, so how can i do that.Is there any specific code for that. Plz suggest.

      Regd's
      Sanjay
Re: How can i terminate a perl embedded CGI program running from a Apache server?
by Anonymous Monk on Jan 02, 2009 at 08:07 UTC
    Kill from task manager, or use pskill