我想知道当xinetd通过udp从随机主机(在lan中)接收命令时是否可以将args传递给bash脚本.要清除:当我从一个随机客户端发送hello到xinetd服务器时,我希望xinetd服务器将hello传递给我指定的bash脚本.用同样的事情的世界.
这是我的xinetd服务文件:
service test
{
socket_type = dgram
protocol = udp
port = 65534
type = UNLISTED
wait = yes
user = root
server = /root/sendmail
server_args = **Received Message from UDP connection**
}
Run Code Online (Sandbox Code Playgroud)
亲切的问候,非常感谢你!