From 2d75f41a4e4384a9837914364b7396872667e9e4 Mon Sep 17 00:00:00 2001 From: Banchio Date: Fri, 22 Jan 2016 14:51:49 +0100 Subject: [PATCH] update find.js to work with win32 pplatform grep command not found, most compatbile is to use findstr --- lib/find.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/find.js b/lib/find.js index f5beaaf..428203b 100644 --- a/lib/find.js +++ b/lib/find.js @@ -17,7 +17,7 @@ function listeners (port, done) { if (process.platform === 'win32') { sudo = 'runas /noprofile /user:Administrator'; - command = 'netstat -n -a -o | grep -i listening | grep :' + settings.port; + command = 'netstat -n -a -o | findstr -i listening | findstr :' + settings.port; rpid = /\d+$/gm; } else { sudo = 'sudo';