Pejman Moghadam / General

Using fork in perl

Public domain


#!/usr/bin/perl -w
$pid=fork;
if(!$pid)
{
  print("This is child process");
}
else
{
  print("This is parent process");
}

BY: Pejman Moghadam
TAG: perl, fork
DATE: 2009-04-25 00:17:00


Pejman Moghadam / General [ TXT ]