LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-20-2006, 10:56 AM   #1
DeekBeek
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS 64-bit
Posts: 122

Rep: Reputation: 15
Modem won't disconnect, Suse v.10.0, Netzero.deb installed under sudo


I keep trying to find the process to kill with top, in order to hang up my modem without having to end the session. Going into Konsole and starting top after su root (since sudo starts netzero as root, in my case) doesn't show me what process to kill.
Somebody must know a utility/command that will just hang the modem up. I've sniffed around kinternet, I can't (or just don't know how to) use that to hang up my connected netzero dialer. This is annoying, even though the modem doesn't do it every time. When the modem does refuse to hang up, I often have to restart.
 
Old 01-21-2006, 04:11 AM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
Do you know what the modem device is called in /dev/? You can use the following to find the process thats using that device, and then kill the process:
Code:
lsof | grep /dev/modem
The second column lists the PID.

I don't use a modem, thus I don't know what command is used to connect to internet in KDE. But if you could find that out, that would be a much cleaner way of doing this.

Last edited by saman007uk; 01-21-2006 at 04:13 AM.
 
Old 01-21-2006, 03:41 PM   #3
DeekBeek
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS 64-bit
Posts: 122

Original Poster
Rep: Reputation: 15
Bingo! Well, almost. I have to use ttyS1 instead of modem. I have to su root first, then my Konsole feedback is as follows:

linux:/ # lsof | grep /dev/ttyS1
pppd 5742 root 8u CHR 4,65 8774 /dev/ttyS1
linux:/ #

Figures, since modem is just a symlink in the /dev/ directory. Haven't tried it yet, since the netzero dialer has so far been disconnecting. Thanks!
 
Old 01-21-2006, 03:44 PM   #4
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
It seems that you are using "pppd" to connect to the internel. Thus, the following command can also be used to kill the process:
Code:
skill pppd
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Netzero deb file in Mandrake klaperle Linux - General 27 08-12-2005 01:38 PM
Netzero in Suse pesinet Suse/Novell 6 07-03-2005 06:23 AM
sudo problem with kppp causes .ICEauthority login failure on Deb 3.1 HalfDiminished Debian 2 01-10-2005 06:44 AM
How to disconnect broadband and use modem chasn Linux - Newbie 7 04-22-2004 08:49 AM
Why does my modem disconnect prompt Linux - Hardware 1 03-09-2004 04:08 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration