Click to See Complete Forum and Search --> : Modem autoconnect & autodisconnect


leonpmu
12-08-2003, 07:55 AM
I have a client who is using Linux as his desktop (whooohooo!!!)

His only bug is that under Windows he was able to check his e-mail and have the system autoconnect on send/recieve mail, and disconnect when finished... can I do that using Evolution and KPPP??

Thanks guys

L

mrBen
12-08-2003, 08:41 AM
Hmmm - not sure if you can do it from within the programs (although you ought to be able to). If not, you'll need something like a mail equivalent of wwwoffle (http://www.gedanken.demon.co.uk/wwwoffle/) which does what you describe (kinda) for web surfing.

Sepero
12-08-2003, 11:00 AM
Create a script that does this:
1. Starts evolution + downloads new mail
2. Wait for evolution
3. killall connections(and/or kppp's)

Insert that as a kppp connection script.

ph34r
12-08-2003, 11:10 AM
In the pppoptions file in /etc/ppp you should be able to add a "demand" option that will dial on demand if there is no connection already.

somebitch
12-08-2003, 12:26 PM
you should be able to set whether you want users to be able to access the various internet devices with netcfg...

i am not quite sure i understand the question so sorry if this isnt the response youre looking for ;)

leonpmu
12-08-2003, 11:40 PM
If any of you have used M$ Outlook (Lookout) then you will know that you have an option that when you click send/recieve it will automatically dial up for you, and there is an option there to disconnect when finished (option box).

My client continually forgets to disconnect again and ended up with an enormmous phone bill!!

Any suggestions??

L

Sepero
12-09-2003, 04:38 AM
Can you run a script when evolution sends/receives?

If so, you can disconnect with a script. Use 'gmessage' or 'dialog' to popup a box asking if they want to disconnect.

leonpmu
12-09-2003, 07:11 AM
First of all, thanks for all the ideas guys!!!

OK I have found a solution in kppp (which is what he is using for dialup.) you have an option to pass optional execution lines to ppp from there, I told it to disconnect after an idle time of 60seconds and also to ignore incoming requests, which is how that damn thing stayed up for more than 17Hours!! ecause the local ISP would send keep-awake packets!!

Anyway. Maybe this can help someone else here. So effectively I ran man ppp, read the arguments lines and then put them into kppp.

funny how it can be so simple and yet so bloody elusive.....

C U ON THE FORUM GUYS :cool:

Sepero
12-10-2003, 03:34 AM
BIG Thanks for posting your solution. Your welcome for the ideas.