I am using perl version 5.8.4.
I am working with a program called JMP. Before opening the program I want to use perl to check if a process of the program is already running. If it is running, I want to close it.
REWORK: (Idk how I get here, I'm just lost)
This only works in windows cause is a shell execute (Taskkill).
system('taskkill /F /IM ImageName.exe >nul 2>&1');
Possible duplicate of:
How can I kill a program that might not exist from Perl on Win32?
perl > system documentation:
http://perldoc.perl.org/functions/system.html
Taskkill documentation:
About syntax redirection ( Based in a awnser from How can I kill a program that might not exist from Perl on Win32? ):
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加