Apoorv Khatreja
Super Loser
QUOTE(powerontop @ Dec 12 2006, 12:40 PM) [snapback]70706[/snapback]
.......
3. Then whenever u want to start the connection type: pon dsl-provider
4. for off'ing it type: poff.
Now comes the main question. How do you automate it. This is where I too was in doubts but not helpless. All Linuxes come with a program called "cron" (I am sure u must have heard it). So simply setup cron with whatever time u want to run the above commands.
I have fully automated my downloads using Azureus and I can now proudly say, I am enjoying my sleep 🙂
Best of luck.[/b]
What 'pon dsl-provider' does is that it tries to dial the connection once. But I hardly get connected in a single attempt (I don't know why this happens, I haven't found a solution till date. Maybe it depends on the SNR Margin or something, and I'm sure it's not a software fault because I face the same problem in Linux). What I do in Windows is that I schedule a .bat file which contains the following script -
@ECHO OFF
:loop
Echo Trying to Dial your connection.........
rasdial DSLname username password
if NOT %ERRORLEVEL% ==0 goto failed
Exit
:failed
cls
Echo Failed to connect....will retry
goto loop
This loop runs until I get connected. What I need is a similar script which I can use to automate the process in Linux. If I just schedule 'pon dsl-provider' it will try to dial the connection once irrespective of the success or failure of the connection. I want a script (or command which has a condition to check whether I'm connected or not and if I'm not, then it redials the connection. In Windows to do it manually, I've set options in my connection like this -
.......
3. Then whenever u want to start the connection type: pon dsl-provider
4. for off'ing it type: poff.
Now comes the main question. How do you automate it. This is where I too was in doubts but not helpless. All Linuxes come with a program called "cron" (I am sure u must have heard it). So simply setup cron with whatever time u want to run the above commands.
I have fully automated my downloads using Azureus and I can now proudly say, I am enjoying my sleep 🙂
Best of luck.[/b]
What 'pon dsl-provider' does is that it tries to dial the connection once. But I hardly get connected in a single attempt (I don't know why this happens, I haven't found a solution till date. Maybe it depends on the SNR Margin or something, and I'm sure it's not a software fault because I face the same problem in Linux). What I do in Windows is that I schedule a .bat file which contains the following script -
@ECHO OFF
:loop
Echo Trying to Dial your connection.........
rasdial DSLname username password
if NOT %ERRORLEVEL% ==0 goto failed
Exit
:failed
cls
Echo Failed to connect....will retry
goto loop
This loop runs until I get connected. What I need is a similar script which I can use to automate the process in Linux. If I just schedule 'pon dsl-provider' it will try to dial the connection once irrespective of the success or failure of the connection. I want a script (or command which has a condition to check whether I'm connected or not and if I'm not, then it redials the connection. In Windows to do it manually, I've set options in my connection like this -