runEmbeddedScript is a tool that demonstrates a method to execute an embedded Perl script in a distinct process.
The best thing is, the new process that's running the embedded Perl script is actually entirely independent of the parent process. What that means is that it will continue to run even after the parent dies or is terminated for any reason.
To see the power of runEmbeddedScript, give the following tests a try:
- Try doing Control-C on the parent and watch as the new process continues with the embedded Perl script.
- Send a TERM signal to the parent with 'kill' and see how the process continues to run.
- Send a USR1 signal to the parent with 'kill -USR1' and see how the new process responds.
- Finally, let the parent finish normally and see the behavior of the new process once it's done.
All in all, if you're looking for a helpful command-line program that can help you run an embedded Perl script as a separate process, runEmbeddedScript is definitely worth checking out!