0
这可能是非常基本的,但不幸的是我不知道如何谷歌它。猫在多个ssh命令不起作用
为什么下面的代码段不按预期工作?我的意思是,我怎样才能让cat
指向远程文件?
#!/bin/bash
ssh [email protected] << EOF
mkdir sandpit
cd sandpit
echo "foo" > foo.txt
echo `cat foo.txt` > foo2.txt
EOF
谢谢,这个工程。那么,我真正想要做的就是'杀死''cat pid.txt \''。在这种情况下我应该怎么做? – akai
你可以做'xargs kill
anubhava
现在我已经检查了编辑,一切都解决了。非常感谢你。 – akai