пт яну 11 16:35:47 EET 2008

Two shell scripts which may be of an interest to the audience

I've written two interesting shell scripts which may be of an interest the first checks if ping avaible to a specified host and if there isn't can be used to restart an adsl modem, so the adsl to reconnect to it's gateway over ppp. I've written this because everytime the BTK / BTC internet fails usually a modem restart is needed for the vpn tunnel over ppp between the adsl and the btc router to be reestablished. This script is supposed to be run on cron and if no internet logs into the adsl modem and restarts it logging about the restart into a file. You can check it out from here chk_net.sh . I've also written a small script which aim is to automate the adding of new virtual hosts into Apache on a Debian system it can be seen here . Hope this would be helpful to someone :) At least it would be for me :)