Vet AutoDownloader on Linux

Rasjid Wilcox rasjidw at bigpond.com
Fri Nov 9 00:45:16 EST 2001


Hi all,

I am trying to substitute the Vet AutoDownloader with a cronable script 
running under Linux.

Using tcpflow I have got the command to send.  I was trying to use an expect 
script as follows:

#!/usr/bin/expect -f
spawn telnet www.vet.com.au 80
expect {
	Escape {
		send "GET 
/servlet/activeupdate?RequestId=2&CustNum=<CustomerNumber>&CustPwd=<Password>&FileName=10.2%2Faup_<FileNumber>.exe 
HTTP/1.1\n\n"
		exp_continue
	} eof { send_user "Disconnected" }
}

--------------------- EOF -----------------------

However, the resulting file is no where near long enough (I guess the server 
is getting no response and stops sending data), and includes the initial 
server responses.  I've clearly got the wrong approach.  Is there some way of 
using lynx or similar to do this, or is writing real code (and learning much 
more about HTML transport) the only way to do this?  I was hoping to cobble 
something together using some kind of simple script and an existing tool.

Any pointers greatly appreciated.

Cheers,

Rasjid.




More information about the linux mailing list