D
David Cantin
Hi
I have some troubles with a long system() sub-process (from 30 sec to
30 min) called from a CGI.
My web page have to wait the end of the system() call before finishing
it's loadding but this is not whats appen. The web page is waiting for
a couple of minutes but continue and finish it's loadding before the
end of program called by the system() call
Here a part of my "pseudo" code :
^- other code (html stuff)...
if (!is_lock($file_name, $file_date)){
lock($file_name, $file_date)
system "path_to_long_execution_prog $file_name $file_date";
my $exit_value = wait();
unlock($file_name, $file_date)
} else {
log("Error :: Trying to redo the system call ?!?");
}
and yes, I got "Error :: Trying to redo the system call ?!?" in my log
and is not suppose to... and I don't know why !
I run on a AIX server whith apache 1.3.27 and perl 5.005_02
Dave
I have some troubles with a long system() sub-process (from 30 sec to
30 min) called from a CGI.
My web page have to wait the end of the system() call before finishing
it's loadding but this is not whats appen. The web page is waiting for
a couple of minutes but continue and finish it's loadding before the
end of program called by the system() call
Here a part of my "pseudo" code :
^- other code (html stuff)...
if (!is_lock($file_name, $file_date)){
lock($file_name, $file_date)
system "path_to_long_execution_prog $file_name $file_date";
my $exit_value = wait();
unlock($file_name, $file_date)
} else {
log("Error :: Trying to redo the system call ?!?");
}
and yes, I got "Error :: Trying to redo the system call ?!?" in my log
and is not suppose to... and I don't know why !
I run on a AIX server whith apache 1.3.27 and perl 5.005_02
Dave