看板 [ Linux ]
討論串[問題] send command over ssh
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者mathfeel (mathfeel)時間16年前 (2010/02/10 07:47), 編輯資訊
0
0
0
內容預覽:
ssh username@host "command". 我常用這個來比較手上和遠程的檔案:. diff Makefile <(ssh username@host "cat ${PWD}/Makefile"). 省下先用scp把遠方檔案拉過來。. --. In heaven, all the int

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者virtuemood (小毛)時間16年前 (2010/02/10 01:35), 編輯資訊
0
0
0
內容預覽:
就是會有用到 bash script 送指令到遠端的需求. 可是似乎不是很方便. 我現在是用 expact 來寫. 但是和 bash script 寫在一起的時後很麻煩. 要除錯也不方便. 有沒有一種指令可以這樣玩的. 如:. send "command" user@host. 然後等遠端跑玩這行指
首頁
上一頁
1
下一頁
尾頁