my $pid; if (defined ($pid=fork)) { if (!$pid) { #system qq(curl -H "Content-Type: application/json" -X POST -d '$datacurl' http://192.168.125.169/index.php/itsqd/v1/nmessage); exec qq(curl -H "Content-Type: application/json" -X POST -d '$datacurl' http://192.168.125.169/index.php/itsqd/v1/nmessage); } }