perlquestion
gabrielsousa
how do i run a shell command without waiting for the output.
<br>
is this rigth ?
<code>
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);
}
}
</code>