in reply to Killing subprocess in windows
in one Win10 command window.use strict; use warnings; open my $fh, '>'. "testingwrite" or die; my $count = 20; while ($count--) { print $fh "count = $count\n"; sleep (5); }
Then I ran ">handle testingwrite" in another command window:
This will give you the pid of processes that have an open file handle to "testingwrite".C:\Users\xxx\Documents\PerlProjects>handle testingwrite Nthandle v4.22 - Handle viewer Copyright (C) 1997-2019 Mark Russinovich Sysinternals - www.sysinternals.com perl.exe pid: 2488 type: File E8: C:\Users\xxx\Documents\PerlPro +jects\testingwrite C:\Users\xxx\Documents\PerlProjects>
handle is freeware from Microsoft as part of sysinternals.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Killing subprocess in windows
by LanX (Saint) on May 20, 2021 at 21:23 UTC |