1
expect
とtitle
でコマンドファイル(macOS)など(GNU/Linux)を実行するにはどうすればよいですか?私は追加することができますどのようにこのためのこのコマンドファイル:Expect + Title。これどうやってするの?
title='My first title'
echo -n -e "\033]0;$title\007"
はあなたがtcl構文を使用する必要が
#!/usr/bin/expect -f
title='My first title'
echo -n -e "\033]0;$title\007"
set timeout -1
spawn rm -rf /path/to/.ssh/known_hosts
spawn ssh [email protected]
expect "?"
send "yes\r"
expect "assword:"
send "thepassword\r"
expect "thenamemachine:~#"
send "bash <(curl -s aFile.sh)\r"
interact
はどうもありがとうございました!そして、** exec ** tipの本当にありがとう! – DylanDog