in reply to passing a file content from one process to another process.

50 MB is not "huge", but even then it is nice to be parsimonious on system reqources.

Rather than going the "forking" way, cannot you just package each of your processes into a subroutine and call both subroutines one after the other and give them the contents of the record to work with as a parameter?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: passing a file content from one process to another process.