I need some help with he expect command. I am trying to unpack the teamspeak 3 Linux client automatically.
Here is my script to grab the file
#!/bin/sh mkdir /home/test && cd /home/test wget http://dl.4players.de/ts/releases/220.127.116.11/TeamSpeak3-Client-linux_amd64-18.104.22.168.run chmod 0777 TeamSpeak3-Client-linux_amd64-22.214.171.124.run
Here is my expect script that gets executed after the script above ...
#!/usr/bin/expect -f spawn sh TeamSpeak3-Client-linux_amd64-126.96.36.199.run expect "\[RETURN\]" send "\r" expect ":" send "q" expect "Please type y to accept, n otherwise:" send "y\n"
It does NOT uncompress and it should.
Thank you so much!