mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
hello world
This commit is contained in:
14
console.lua
Normal file
14
console.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user