http://www.perlmonks.org?node_id=984762


in reply to Re: Finding out by one process a filename opened by another process.
in thread Finding out by one process a filename opened by another process.

Upon further consideration, it looks to me like you might want to simply build a perl package with system constants, or use a system-wide configuration file, depending upon what precisely your application does.

Using shared memory is also an option if the name of the pipe will change, the server application will then write the filename of the pipe to shared memory with a pre-determined shared memory key, and the client will then read the value from shared memory. IPC::ShareLite may be all you need.

  • Comment on Re^2: Finding out by one process a filename opened by another process.

Replies are listed 'Best First'.
Re^3: Finding out by one process a filename opened by another process.
by humble (Acolyte) on Aug 01, 2012 at 15:52 UTC
    Another approach is to write the filename (w/ its path) to a file - by forked process, then another process (waiting for the keypress) will simply read the file and get the filename w/ its path. - But I do like it because app. optimimum - that I prefer - forked process will write each file as it processes it, where waiting for key press - only now and then will use the file.