【发布时间】:2014-02-25 19:06:53
【问题描述】:
我正在运行一个脚本,但有一个不寻常的警告: 这就是我的控制台中发生的事情
#whoami
root
#ls -l test.sh
-rwxr-xr-x. 1 root root 1894 Feb 2 01:58 test.sh*
#./test.sh
-bash: ./test.sh: Permission denied
编辑: 我的脚本:
#!/bin/bash
while read pass port user ip file; do
echo "startt------------------------------------" $ip
ping $ip -c 4
if [ $? -eq 0 ]; then
echo $ip ok...
else
echo $ip failed...
fi
echo "finish------------------------------------" $ip
done <<____HERE
pass 22 root 1.1.1.1 test.txt
____HERE
有什么想法吗? 谢谢你
【问题讨论】: