perl background process
问题 I am trying to run a background process in perl. I create a child process, which is used to call another perl script. I want to run few lines of code parallely with this child process. And after the child process is done.I want to print a line of code. Main script #!/usr/bin/perl $|=1; print "before the child process\n"; my $pid = fork(); if (defined $pid) { system("perl testing.pl"); } print "before wait command\n"; wait(); print "after 20 secs of waiting\n"; testing.pl #!/usr/bin/perl print