lacertus has asked for the wisdom of the Perl Monks concerning the following question:
sub do_work { my($query) = @_; return if( $query->param('password') ne 'pass' ); if($query->param('which_bot') eq 'chump') { if($pid = fork()) { return; } elsif(defined $pid) { my @args = ("/bin/killall", "-TERM", "python") +; #system(@args); exec('/usr/bin/python /usr/share/chump-1.3/src +/dailychumpbot.py -i -s "neutron.oftc.net" -n chumpy --channel="#iitl +ug" -d /httpd/htdocs/www/chump -e /chump/churn_html.xsl'); exit; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI fork() Difficulty
by sgifford (Prior) on Oct 26, 2004 at 02:28 UTC |