deploy.sh 文件内容如下 #!/bin/bash #scp -r ./* root@XXXXX:/root/sunSH/xadserver/ function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element B='doc' if [[ $dir_or_file == *$B* ]] then echo "skip---------------->>"$dir_or_fil
scp是我最常用的远程文件拷贝工具,今天发现突然不能用了: svan-mac:hive-tools xiean$ scp -Pxx target/urs-hive-tools-jar-with-dependencies.jar hzxiean@xxxxxxx:/home/hzxiean/Pseudo-terminal will not be allocated because stdin is not a terminal. 起初,怀疑是我在IDE 的termail 里边执行时的问题. 于是我