in reply to Window Process check
Simple way:
C:\test>perl -E"say 'notepad is ', grep( /notepad/, `tasklist`) ? '' +: 'not ', 'running'" notepad is not running C:\test>start notepad.exe C:\test>perl -E"say 'notepad is ', grep( /notepad/, `tasklist`) ? '' +: 'not ', 'running'" notepad is running
See Win32::Process::Info for another way.
|
|---|