use lua-posix instead of os.execute to manipulate dates
more lightweight ip structure