http://www.perlmonks.org?node_id=1188755

gabrielsousa has asked for the wisdom of the Perl Monks concerning the following question:

how do i run a shell command without waiting for the output.
is this rigth ?
my $pid; if (defined ($pid=fork)) { if (!$pid) { #system qq(curl -H "Content-Type: application/json" -X POST -d '$datac +url' 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); } }