Hi!,
I have to make a platform independent script that will
start a server and client in the script. I attempted
this using fork method. Although the script runs well
in UNIX, it does not run on Nt - giving the error:
The process cannot access the file because
it is being used by another process.
Hi!,
I have to make a platform independent script that will
start a server and client in the script. I attempted
this using fork method. Although the script runs well
in UNIX, it does not run on Nt - giving the error:
The process cannot access the file because
it is being used by another process.
My advice is not to use fork if you want your script to run cross
platform. You will have enough problems writing cross-platform,
multi-process perl code without dragging fork into it. The safest and
simplist way to do what you want is to use open2 or open3 to pipe to and
from child processe