为什么在14.04中可运行的含有read命令脚本在16.04中就有问题?

编译打包和其他
回复
abthla
帖子: 5
注册时间: 2017-08-04 16:42
系统: ubuntu16.04

为什么在14.04中可运行的含有read命令脚本在16.04中就有问题?

#1

帖子 abthla » 2017-08-28 15:40

脚本会被放到etc/rc.local中进行系统上电后启动,脚本中有read -t 命令,在ubuntu14.04中可以正确运行,可是为什么在16.04中直接读不到read信息?求助,谢谢!
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 为什么在14.04中可运行的含有read命令脚本在16.04中就有问题?

#2

帖子 九天星 » 2017-08-29 8:25

没看到你的脚本,不好评价啊,单从你所述分析,read读取的文件是否在16.04中存在是你需要判定的!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 为什么在14.04中可运行的含有read命令脚本在16.04中就有问题?

#3

帖子 poloshiao » 2017-08-29 11:58

脚本会被放到etc/rc.local中进行系统上电后启动
可是为什么在16.04中直接读不到read信息
Ubuntu 16.04 開機初始化 改為 systemd
1. 是否會處理 /etc/rc.local ? 需查證
2. 試試 rc-local.service
2-1. https://askubuntu.com/questions/886620/ ... untu-16-10
sudo systemctl start rc-local.service
回复