|
发表于 2006-3-8 13:36:49
|
显示全部楼层
I think its becase "|" will fork a subshell on remote and can't feek the output to the current ssh pseudo tunnel. You can try something like:
- ssh user@host 'while read line;do echo $line;done< <(find DIR -type f -name "something")'
复制代码 . This will make sure no subshell forked and everything is executed and outputed in current shell. |
|