From: Rui Guo Date: Tue, 2 Jun 2009 07:52:37 +0000 (+0800) Subject: Fix the cmdcallback demo to create the logfile correctly. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/5613c2d8c82c5676565b53e2ab5df4bb2dceb11e Fix the cmdcallback demo to create the logfile correctly. --- diff --git a/src/scripts/cmdcallback.lua b/src/scripts/cmdcallback.lua index cc5d2a3..b0c2d83 100644 --- a/src/scripts/cmdcallback.lua +++ b/src/scripts/cmdcallback.lua @@ -1,5 +1,6 @@ --[[ For now, this sample function will simply record all the commands executed ]]-- function command_executed(name, args) + os.execute('mkdir -p /tmp/debug') local f = io.open('/tmp/debug/ll', 'a') f:write("Command executed: " .. name)