From 86fd24c85622cd32f492b3c69d963e7db2b211eb Mon Sep 17 00:00:00 2001 From: mam17 Date: Sat, 13 Jun 2020 05:16:09 -0300 Subject: [PATCH 1/2] Removing get pid alternative command that not works on Gcloud container --- node-phantom-simple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-phantom-simple.js b/node-phantom-simple.js index 24d0ab6..00b2580 100644 --- a/node-phantom-simple.js +++ b/node-phantom-simple.js @@ -203,7 +203,7 @@ exports.create = function (options, callback) { // between versions. // - `ss` can exist but fail in some env (#76). // - cmd = 'ss -nlp | grep "[,=]%d," || netstat -nlp | grep "[[:space:]]%d/"'; + cmd = 'netstat -nlp | grep "[[:space:]]%d/"'; break; case 'darwin': From 919b254b083a8340dfcecfc45316c9bfcda969f0 Mon Sep 17 00:00:00 2001 From: mam17 Date: Sat, 13 Jun 2020 05:35:35 -0300 Subject: [PATCH 2/2] Removing get pid alternative command that not works on gcloud container instance --- node-phantom-simple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-phantom-simple.js b/node-phantom-simple.js index 24d0ab6..00b2580 100644 --- a/node-phantom-simple.js +++ b/node-phantom-simple.js @@ -203,7 +203,7 @@ exports.create = function (options, callback) { // between versions. // - `ss` can exist but fail in some env (#76). // - cmd = 'ss -nlp | grep "[,=]%d," || netstat -nlp | grep "[[:space:]]%d/"'; + cmd = 'netstat -nlp | grep "[[:space:]]%d/"'; break; case 'darwin':