ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all. Just wondering if anyone can point me in the right direction as to how to get mozilla to start wvdial. What I want is basically - when I start mozilla or my email client, I want a script or something firstly to check whether there is an existing connection, if there is, close, and if there isnt, then to start up wvdial and connect to the internet. Wvdial runs as root. I had fedora at one stage, and apperently, I think theres an app in there that will do this. However I never was able to get it working with my winmodem, so I had to use wvdial. Have switched to Debian sarge since and still use wvdial. Havent bothed with kppp or anything else cause I know wvdial works and I dont have any problems with it. Is this something that can be done at script level or is too complex and require programming. Not really very experienced in scripting and cant program at all, but I would like to give it a go. How hard do you think it would be?
I wouldn't know if there are more user level approaches for this, but a dial on demand server, diald, will be able to do this. basically it will dial when it sees internet traffic and hangs up after inactivity or such.
Honing (actually - developing) my scripting skills is actually what I had in mind when I first asked the question. This may turn into a good little project to do on those rainy days. Have tried diald and cant get that to work at the moment anyway. Will keep trying but I think I'll have a go at writing my own home grown script just to see if I can. If I wrote a script that checked for an active connection, if it didnt find one, starts wvdial, then once active opens mozilla, could you put it somewhere in the mozilla directory to be run before mozilla is started? ie so if I click on mozilla icon, it runs script first.
You don't have to put it in mozilla directory. You can place it anywhere & create a desktop icon/shortcut pointing to it. The script can call mozilla. I believe there is an option for running a program in an xterm (gnome had it??).
I'm out of touch with pointy-clicketty-icons 'cause I use fvwm
Take the plunge, start writing it. We are always here to help you. You will eventually be successful & then...
Satisfaction Guaranteed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.