在Sed上出错:binsed: can't read : No such file or directory。

问题描述 投票:0回答:1

这段代码是由OpenVPN客户端连接触发的,并且设置应该替换为 <IP> 到客户端IP并将其存储到文件中,当运行这段代码时,我得到错误信息:binsed: can't read : No such file or directory(不能读取:没有这样的文件或目录)

bin_sed="/bin/sed"
Copy the file to the state directory for undoing later.
Replace invocations of <IP> with the client's IP
"$bin_sed" "s@<IP>@$ifconfig_pool_remote_ip@" "$fw_file" > "$state_fw_file"
bash openvpn
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.