in reply to Close EXE & die command

I surmise that you're running on Windows: in that case you may find that Win32::Process provides more useful tools than system(), if you want to monitor the state of your external executable or terminate it early.

--

"Any sufficiently analyzed magic is indistinguishable from science" - Agatha Heterodyne