From b27d2b545b99bcdd4b109f8732940c33797fd208 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Tue, 19 Apr 2016 14:58:52 +0200 Subject: [PATCH] mpExperienceHTTP(S): avoid subshelling --- src/mpExperienceHTTP.py | 4 ++-- src/mpExperienceHTTPS.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mpExperienceHTTP.py b/src/mpExperienceHTTP.py index 3d81acd..362e4d4 100644 --- a/src/mpExperienceHTTP.py +++ b/src/mpExperienceHTTP.py @@ -55,8 +55,8 @@ class MpExperienceHTTP(MpExperience): return s def getHTTPClientCmd(self): - s = "(time " + MpExperienceHTTP.WGET_BIN + " http://" + self.mpConfig.getServerIP() + \ - "/" + self.file + " --no-check-certificate) &>" + MpExperienceHTTP.CLIENT_LOG + s = "{time " + MpExperienceHTTP.WGET_BIN + " http://" + self.mpConfig.getServerIP() + \ + "/" + self.file + " --no-check-certificate} &>" + MpExperienceHTTP.CLIENT_LOG print(s) return s diff --git a/src/mpExperienceHTTPS.py b/src/mpExperienceHTTPS.py index 2706275..640d600 100644 --- a/src/mpExperienceHTTPS.py +++ b/src/mpExperienceHTTPS.py @@ -55,8 +55,8 @@ class MpExperienceHTTPS(MpExperience): return s def getHTTPSClientCmd(self): - s = "(time " +MpExperienceHTTPS.WGET_BIN + " https://" + self.mpConfig.getServerIP() + \ - "/" + self.file + " --no-check-certificate) &>" + MpExperienceHTTPS.CLIENT_LOG + s = "{time " +MpExperienceHTTPS.WGET_BIN + " https://" + self.mpConfig.getServerIP() + \ + "/" + self.file + " --no-check-certificate} &>" + MpExperienceHTTPS.CLIENT_LOG print(s) return s