Dear All:

I am trying to use ifup for a wireless network to run a script when the network connects.

Here is my /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wireless-essid attwifi
ifup /home/misha/attwifi-ifup.sh
And the script /home/misha/attwifi-ifup.sh
Code:
#!/usr/bin/env twill-sh
sleep 15
go http://www.bcm.edu
find AT&T
fv 2 username username
fv 2 roamRealm sbcglobal.net
fv 2 password password
fv 2 aupAgree 1
submit
Network itself connects fine.

Any idea what I might be doing wrong (script works fine by self too).

Thank you!

Misha