我正在尝试运行一个简单的expect脚本,在远程主机中创建一个文件,这里是脚本:
#!/usr/bin/expect -f
spawn ssh numeutente@11.11.11.111
expect "password: "
send "psw\r"
expect "$ "
send "cd /var/www/localhost/htdocs/oss\r"
send "touch file.txt\r"
expect "$ "
send "exit\r"
但是当我发痒时,没有file.txt。怎么了?