in reply to What is this process

There are commands like system and exec that perform an implicit fork. Is this perhaps what you are seeing?

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Replies are listed 'Best First'.
Re^2: What is this process
by yellowta (Initiate) on Sep 26, 2016 at 19:22 UTC
    I have isolated a section of code that appears to be related to the rogue processes. In that section the only command like that I do is one like 'echo "$xxx" >>$file`. I guess that is an implicit system command. I could buy this except the ratio of records processed to the processes does not seem to match. A process does not pop up for each execution of the echo. In that section is also do a seek command. This is executed to reset the EOF file when I hit EOF on the input file. Could that do it? Thanks for the response? I am starting to pull my hair out trying to figure this out.

      echo is a system command so perl will have to start a shell to run that, so yes, it will start a new process for each call to echo.

      Even if they are happening too fast for you to see.

      BTW, that's not very efficient, so you'd be better just using perl to do that, open can open a file for append.