Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Perform an action when network cable unplugged (and back in again)
- Date: Wed, 13 Jun 2012 21:05:29 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Perform an action when network cable unplugged (and back in again)
- References: <4FD7DDC0.9090701@dcook.org> <CAAcd6GqmkcHhkLJv=UFaMoHBBJVx5ekpFj0Hrg+C7vsq=jz1pQ@mail.gmail.com> <20120613120015.407df2fd5e958adcae773233@kinali.ch>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
>> http://stackoverflow.com/questions/4676866/how-can-i-use-a-netlink-socket-to-data-from-kernel-space-in-python >> >> This looks promising at least.. > > Hmm.. i would have first looked whether udev gets an event. If it does, > then you can just use standard shell scripts instead of hooking into netlink. Interesting idea... but how do I know if udev gets an event? I can tell you that out of all the logs (*) in /var/log/ that only these three get the "r8169: eth0: link down" message: kern.log messages syslog Darren *: Specifically: cd /var/log tail -f * */* (and wait for it to settle down, then pull out the network cable) -- Darren Cook, Software Researcher/Developer http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)
- Follow-Ups:
- References:
- [tlug] Perform an action when network cable unplugged (and back in again)
- From: Darren Cook
- Re: [tlug] Perform an action when network cable unplugged (and back in again)
- From: Jawaad Mahmood
- Re: [tlug] Perform an action when network cable unplugged (and back in again)
- From: Attila Kinali
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Perform an action when network cable unplugged (and back in again)
- Next by Date: [tlug] Why just two packages unauthenticated
- Previous by thread: Re: [tlug] Perform an action when network cable unplugged (and back in again)
- Next by thread: Re: [tlug] Perform an action when network cable unplugged (and back in again): have udev call you
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links