[FWTools] Help with ogr2ogr on windows
Mateusz Loskot
mateusz at loskot.net
Wed Jun 6 00:58:01 EDT 2007
Chetan Tiwari wrote:
> if(my $pid = fork){
> }
> elsif (defined $pid){
> close(STDOUT);
> exec($ogrcmd);
> exit(0);
> } else{
> die "Fork Error";
> }
>
> # End script
> }
As I see, you're not using system() function, but fork + exect.
Better, try to use Perl extension for system() function if you
want to achieve asynchronous call:
system(1, ...)
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the FWTools
mailing list