21 lines
354 B
Lua
21 lines
354 B
Lua
--[[
|
|
скрипт который отправляет данные по IPC
|
|
]]
|
|
|
|
local syscalls = require("syscalls")
|
|
|
|
local f = io.open("/tmp0/1/lua_test_ipc_pid", "r")
|
|
|
|
local pid
|
|
|
|
if f then
|
|
pid = tonumber(f:read("l"))
|
|
f:close()
|
|
end
|
|
|
|
if pid then
|
|
while true do
|
|
print(syscalls.SendIPCMessage(pid, syscalls.IPC_msg.fromString("Test aboba")))
|
|
end
|
|
end
|