if(my $pid = fork()){ $this->set_pid_in_db($id, $pid); } # Child process starts service and inherits child PID else{ my $command = sprintf("%s %s 1>>%s 2>>%s", $this->fnClient(), $id, $this->fnOe($id), $this->fnOe($id)); #my $command = sprintf("%s %s", $this->fnClient(), $id); exec($command); } >ps -ef | grep SB mark 11970 1 0 07:57 pts/1 00:00:00 sh -c /code/SBClient2.pl job1 1>>/log/log.1.oe 2>>/log/log.1.oe mark 11971 11970 77 07:57 pts/1 00:00:06 /usr/bin/perl /code/SBClient2.pl job1