From 11c98983b6fa2110931f2ad487d1250e027da104 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 16 Apr 2008 13:18:04 +0000 Subject: Updating makefile and changeing the way logfiles are fetched. git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@1012 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opennhrp-model.lua') 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() -- cgit v1.2.3