# Workaround for Windows (will not help): my $h = fork(); if (defined $h and $h == 0) { # child close($client); system($cmd); exit(0); }