#! /usr/bin/expect -f # # Manipulate intercom layer log_file -noappend ctrl_icl.log set timeout 60 spawn ./run_icl.sh ; expect "Command \(1, 2, 3, 4 or 5\):" { send "1\n" } expect "Insert name of the Server (max. 80 chars):" { send "trd_dimfeeserver_0534\n" } expect "Do you want to use a checksum \(Y/N\)\?" { send "n\n" } expect "Command:" { send "1\n" } expect "Insert filename with instruction data:" { send "/home/trd/dcsnfs/ROC_Test/icl_command.txt\n" } expect "Command:" { send "0\n" } expect "Command \(1, 2, 3, 4 or 5\):" { send "6\n" } send_user "Script end\n" close exit 0; # EOF