LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2005, 04:12 AM   #1
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Get mozilla to start wvdial


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?
 
Old 01-25-2005, 07:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 01-25-2005, 07:04 PM   #3
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
Thanks acid_kewpie, will look into it.
 
Old 01-25-2005, 11:46 PM   #4
dustu76
Member
 
Registered: Sep 2004
Distribution: OpenSuSe
Posts: 153

Rep: Reputation: 30
If you want to use this excellent opportunity to hone your shell scripting skills, you can write a script on the lines of :

[psuedocode]
while ifconfig_has_no_entry_for_ppp0
do
internet is down so
fire wvdial command
done
fireup_mozilla
[/psuedocode]
 
Old 01-26-2005, 02:20 AM   #5
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
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.

Last edited by short101; 01-26-2005 at 02:23 AM.
 
Old 01-26-2005, 10:24 PM   #6
dustu76
Member
 
Registered: Sep 2004
Distribution: OpenSuSe
Posts: 153

Rep: Reputation: 30
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.

HTH.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla won't start.... iatemyfingers Linux - Newbie 2 06-16-2005 11:03 AM
Mozilla start up padeco Linux - Software 2 03-08-2005 03:10 PM
Mozilla 1.2.1 Won't Start agitated Linux - Newbie 2 12-14-2004 05:12 AM
wvdial and mozilla short101 Linux - Newbie 6 05-30-2004 08:42 PM
Mozilla won't start jjn2004 Linux - Software 2 01-29-2004 12:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration