mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
15 lines
287 B
Lua
15 lines
287 B
Lua
local skynet = require "skynet"
|
|
|
|
skynet.callback(function()
|
|
local cmd = io.read()
|
|
local handle = skynet.command("LAUNCH",cmd)
|
|
if handle == nil then
|
|
print("Launch error:",cmd)
|
|
else
|
|
print("Lauch:",handle)
|
|
end
|
|
skynet.command("TIMEOUT","0:0")
|
|
end)
|
|
|
|
skynet.command("TIMEOUT","0:0")
|