Hello vinod, good-evening.
This is quite simple. Just go thro the post dial ppp scripts. This should solve your issue.
/etc/ppp/ip-up /etc/ppp/ip-down
This should do the job mighty well. Just read them well and back 'em up before you start on anything adventurous.
Bye for now.
Trevor
On Wed, 2003-01-01 at 16:21, Vinod wrote:
- LUG meet on 12 Jan. 2003 @ VJTI
Hi friends,
When I connect to net through a modem, I can check whether ppp0 is active or not using ifconfig command so that it will list the status of ppp0.
My problem is I had set a command in crontab as follows.
lynx -dump www.lcnet.com/update.php (A module to update the web mysql database)
Above script has to work and update only if ppp0 is active.
How can I check whether ppp0 is active (A script has to check and then if the status is true, update.php module has to execute).
Please suggest me how to go about.
I had put six to seven commands in a batch file and the batch file name is given in crontab. I am using wvdialer to connect to net and it redials if connection disconnect. and if I specify the dialing command "wvdial redial" in the batchfile, then the subsequent command in the batch file are not executing.
Regards,
Vinod.
-- _______________________________________________