| [reply] |
| [reply] |
How you run it depends on what sort of output you need to collect. If you want the STDOUT and STDERR, plus the ability to write to STDIN , use something like IPC::Open2 or IPC::Open3.
If you need to share data from the executable in realtime, with other parts of the script, threads might be useful.
If you just need to run the executable without collecting returns from it, just use backticks, simple piped opens, etc.
Finally, I see that many of your previous questions were Tk related, and in that regard, you must take precautions to NOT block the functioning of the Tk eventloop
with your program execution. So with Tk, or most any gui, piped opens or IPC::Open3, or threads are used, to run the external command in a different time slice.
| [reply] |
Is he asking how to execute a system call from within perl? Or another perl script within the perl script? Or simply how to run a perl script in general? Or maybe he needs to run the script down to his boss down on the other side of the building? See, this is what comes of asking questions that aren't specific enough. ;) | [reply] |