|
Prev: Is there a way to simulate/preview (but not really do) rsync ?
Next: Hot Shop Hamilton Khaki Field Automatic - Hamilton Minimum Price
From: Colin Brace on 5 May 2008 03:13 On May 3, 3:35 pm, mop2 <mop2bky4mz5tyjwa8ersp7hrg5u...(a)gmail.com> wrote: > I'm using bash for that. > My script is below. Hi, By coincidence, I found another of doing this on this web page: https://secure.dd-wrt.com/phpBB2/viewtopic.php?p=81983&sid=2c1e347783c354a110c0d0cf6709bd72 It uses the telnet interface of the ADSL modem I have, a Copperjet from Allied Data. I adapted it in my script like this: in /etc/hosts: 172.19.3.1 copperjet #!/usr/local/bin/bash [...] # copperjet username and password cjtuser="colin" cjtpass="xxxxxxxxxx" # my PC mypc="venus" # procedure to reset ZIPB mode on the Copperjet resetZIPB () { ( sleep 1 printf "$cjtuser\r" sleep 1 printf "$cjtpass\r" sleep 1 printf "zipb set public device $mypc\r" sleep 1 printf "user logout\r") | telnet copperjet } [...] It works really well. I guess I will have to save studying HTML POST for another project. ;) Thanks anyway for your ideas. -Colin |