I have different perl scripts who are launched from within a Perl script that run all independant what means if a certain Perl script is launched from within another Perl script that script have to be killed straight after launching the other script without leaving any trace. With the subroutine below I have been able to do this except for the fact that the Perl executable stay into memory which means that everytime I go through the subroutine below it creates a new Perl executable in memory so after a while I got a lot of Perl executables running. When I exit the Perl script currently active it will kill all remaining Perl.exe. Is their a way that I can launch another Perl script from within a Perl script killing that script without killing the system call to launch the other script. I know that it is very difficult explained to do something simple. It's basically automatic exiting a Perl script and launching another one. The scripts are not running from windows but from an application that has a Perl interface.
sub manual_gerber_auto { $W->destroy; system "perl $GENESIS_DIR/sys/edesign/scripts/input_manual.pl"; exit; }
In reply to How to reduce memory by killing redundant perl executables by juo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |