PDA

View Full Version : how to auto execute commands on internet connection?



shams
20th April 2006, 01:36 AM
hi,
i use console with wvdial to connect to the isp, is there any way to auto execute some commands upon internet connection?

VictorienSardou
20th April 2006, 07:05 PM
can a bash script be setup so that instead of typing vwdial, one types vwdial-cmd which contains the extra commands?

vi vwdial.cmd
chmod +x vwdial-cmd

contents of vwdial-cmd:
#! /bin/bash
wvdial
ping -c 1 www.google.com
ping -c 1 www.yahoo.com