laziness, impatience, and hubris | |
PerlMonks |
Re: How to persist variable created in shell script called from Perl after shell script finished execution?by NetWallah (Canon) |
on Feb 24, 2014 at 04:14 UTC ( [id://1075931]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|