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.