问一个关于python用os.popen使用linux的read -t命令的问题
c=os.popen("read -t 5")
报错“sh: 1: read: Illegal option -t”
什么原因 各位大哥帮帮忙解释一下……
[解决办法]
read这个命令很特殊,
[root@vps616 python]# whereis read
read: /usr/share/man/man1p/read.1p /usr/share/man/mann/read.n.gz /usr/share/man/man1/read.1.gz /usr/share/man/man3p/read.3p /usr/share/man/man2/read.2
[root@vps616 python]# which read
/usr/bin/which: no read in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
完全没有.