1

如何分配以下命令的输出,结果类似于 /export/home/xyz

var=(plink -pw "mukesh" "mukesh@192.168.79.128" echo $HOME)

并在这里使用它

pscp "C:\Documents and Settings\mukesh\putty\pub.ppk" "mukesh@192.168.79.128:$var/.ssh/puttykey.ppk"

我试过了,但没有用。

for /f %%i in ('plink -pw "mukesh" "mukesh@192.168.79.128" echo $HOME') do set VAR=%%i
%%i was unexpected at this time.
4

0 回答 0