Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Best way to get notifications from dhclient?

Best way to get notifications from dhclient?

Scheduled Pinned Locked Moved Mobile
sysadmintoolsquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shakhtyor
    wrote on last edited by
    #1

    This is a new area for me and I'm still hacking my way through it, so I would greatly appreciate any insight or a push in the right direction. I have a process that needs to be notified when dhclient (which is launched by an unrelated process in another application) finishes configuring the network device and fetches the IP address and all. Is there a way to hook into dhclient for the first process to get notification events from dhclient? I'm currently considering doing it from the dhclient-exit-hooks script that is invoked on dhclient exit, but I am curious if OMAPI can be used instead? The man-page for dhclient says such control of dhclient is possible through the use of OMAPI, but the man-pages for OMAPI and and dhcpctl claim it's used to get info from the DHCP server only...

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups