Write a program to show the process of spawning a child process



Write a program to show the process of spawning a child process..

Answer / Abhinav Gaur

Here is an example CGI script in Perl that demonstrates the fork() function:nn#!/usr/bin/perlnuse strict; use warnings;nfork() {ntprint "This is the child process
";n}nprint "This is the parent process. The child has been forked
";

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How will you declare a variable in perl?

1 Answers  


Write the program to process a list of numbers.

1 Answers  


What value is returned by a lone `return;’ statement?

1 Answers  


How many types of primary data structures in Perl and what do they mean?

1 Answers  


What is the function of virtual documents in cgi programs?

1 Answers  


What is perl push array function?

1 Answers  


I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur

1 Answers  


What are prefix dereferencer?

1 Answers  


Define perl scripting?

1 Answers  


How to close a directory in perl?

1 Answers  


What are different data types that perl supports. Elaborate on them.

1 Answers  


How to add elements in a hash in perl?

1 Answers  


Categories