我想知道当xinetd通过UDP接收来自随机主机(在局域网中)的命令时,是否可能向bash脚本传递参数。为了澄清:当我从随机客户端发送例如hello到xinetd服务器时,我希望xinetd服务器将hello传递给我的指定bash脚本。同样的事情也适用于world。
这是我的xinetd服务文件:
这是我的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**
}
敬祝好运,非常感谢!