0
tclscript(自動化)を実行してiperfコマンドを実行します。別のPCで実行するiperfコマンド(Linux)。私は同じことを行うためにtclexpectを使用しています、そして、必要条件は、コンソールを開き、iperfコマンドを実行することです。コードを以下に示します。tcl expectコマンドを使用したIperf
puts "\n Enter the port no : "
gets stdin sprt
puts "\n Enter the display intervel (in sec) : "
gets stdin sint
global spawn_id
set timeout 40
spawn telnet $ip
expect "login:"
send "$user\r"
set timeout 10
expect "Password:"
send "$password\r"
expect "$"
send "iperf -s -u -p $sprt -i $sint"
私を助けてください。
実際の問題は何ですか?どのように動作していないか説明してください... –
Linux PCで新しい端末(コンソール)を開くことができず、iperfも実行できません。さらに、制御はメインのスクリプトに戻っていません –