Change this below line as shown:
from
open my $WFH, '>', $clusterservice_info
to
open my $WFH, '>>', $clusterservice_info
As you have open the file in write mode, the file will be overwritten
by each execution. Instead if you use append mode, the information
will be appended to the same file.
Re
Hi List
The below mentioned code will run at the same time ( symaltaneously) from 2
or more separate locations and it will write its execution(absolute path)
path and its PID.
But when ever I am trying to run this code only one program's information is
written to the common file and other progra