在expect中使用shell的環境變量

send "$env(MYPASSWORD)\r" shell

MYPASSWORD 是在shell中經過export設定的環境變量 變量

相關文章
相關標籤/搜索