LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2004, 04:05 PM   #1
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Rep: Reputation: 32
network connection auto reset (dhcp)


hi!

i have a rather strange question.
is it possible to check somehow when the internet cable is disconnected and then reconectedso that i can then launch this simple script:

killall -q dhcpcd
dhcpcd eth0

meaning, to reset it and get the ip address.
i know it's more of a programming issue but i thought i would give it a shot here. anything in C/C++ language would be helpfull. or in script if that's easier.
the thing is i don't want to make a loop. just a interrupt call or similar.

thanks
indy
 
  


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
network connection auto reset (dhcp) freeindy Programming 1 07-05-2004 02:11 PM
DHCP won't renew lease without reset of router! amped Linux - Networking 9 03-23-2004 10:37 PM
network connection auto shutdown :( doughammond Linux - Networking 4 10-15-2003 01:59 PM
Network error: Connection reset by peer jeffpoulsen Linux - Networking 0 10-09-2003 06:31 PM
Network Error: Connection Reset by Peer Bob Welch Linux - Networking 3 12-09-2002 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration