看板 [ Linux ]
討論串[問題] 遠端執行ssh
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者hardcover (不可說不可說)時間15年前 (2010/10/29 17:51), 編輯資訊
0
0
0
內容預覽:
我的shell script主要就是. addr=hardcover@server-$1. ssh $addr "/usr/sbin/tcpdump -Xvvv -r '$(ls -l tail | tail -n1 | cut -c50-)' \$@" > xxx.txt. 但是 '$(ls -l

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者hardcover (不可說不可說)時間15年前 (2010/10/29 13:50), 編輯資訊
0
0
0
內容預覽:
我想直接由ssh取回遠端電腦上的一些當天剛產生當天的資料. ssh hardcover@remote_site ~/mytool -r '$(ls -l | tail -n1 | cut -c50-)' \. > my_data.txt. 如果在 互動模式下就沒有沒問題,但在shell script
首頁
上一頁
1
下一頁
尾頁