summaryrefslogtreecommitdiffstats
path: root/opennhrp-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'opennhrp-model.lua')
-rw-r--r--opennhrp-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/opennhrp-model.lua b/opennhrp-model.lua
index 224155a..af2438a 100644
--- a/opennhrp-model.lua
+++ b/opennhrp-model.lua
@@ -204,7 +204,7 @@ function update_filecontent (self, modifications)
end
function get_logfile ()
local file = {}
- local cmdtxt = "cat /var/log/messages | grep " .. processname
+ local cmdtxt = "grep " .. processname .. " /var/log/messages"
local cmd, error = io.popen(cmdtxt ,r)
local cmdoutput = cmd:read("*a")
cmd:close()