in reply to How to persist variable created in shell script called from Perl after shell script finished execution?

The most common way to get data from a shell command/script is to read the STDOUT from that script, typically using the 'qx' command.

If STDOUT is already being used for other purposes, you could create and write to a "Named Pipe" using the linux "mkfifo" comman to create, and a standard "echo xxx > pipe/name" to send data, while th perl script reads from the pipe.

A less efficient way would be to persist data to an actual file on the file system.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

  • Comment on Re: How to persist variable created in shell script called from Perl after shell script finished execution?