Fix the cmdcallback demo to create the logfile correctly.
authorRui Guo <firemeteor.guo@gmail.com>
Tue, 2 Jun 2009 07:52:37 +0000 (2 15:52 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Tue, 2 Jun 2009 07:52:37 +0000 (2 15:52 +0800)
src/scripts/cmdcallback.lua

index cc5d2a3..b0c2d83 100644 (file)
@@ -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)