标签: linux shell ssh tcl expect
我正在尝试使用下面的expect脚本在远程服务器中创建目录,但是我收到错误
spawn ssh $username@$ipaddress 'mkdir $destination/$dir_to_be_copied' expect "?assword:" send "$password\r" expect eof
但我收到以下错误
mkdir <MY NEW DIRECTORY>: No such file or directory