我想知道当 xinetd 通过 udp 从随机主机(在局域网中)接收命令时,是否可以将 args 传递给 bash 脚本。澄清:当我从随机客户端向 xinetd 服务器发送例如hello时,我希望 xinetd 服务器将 hello 传递给我指定的 bash 脚本。与world相同。
这是我的 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**
}
亲切的问候,非常感谢你!