Skip to content

Instantly share code, notes, and snippets.

@R-omk
R-omk / tnteval
Created January 24, 2020 06:56
Print output from tarantool to stdout
#!/usr/bin/env tarantool
local CONSOLE_SOCKET_PATH = 'unix/:/var/run/tarantool/tarantool.sock'
local os = require("os")
console = require('console')
console.on_start(function(self)
local status, reason
status, reason = pcall(function() require('console').connect(CONSOLE_SOCKET_PATH) end)
if not status then