Results 1 to 3 of 3

Thread: scripts in /etc/NetworkManager/dispatcher.d NOT executing

  1. #1
    Join Date
    May 2011
    Beans
    5

    scripts in /etc/NetworkManager/dispatcher.d NOT executing

    hey all,

    Thanks for your time. I'm trying to have a script execute when a certain network event happens. In order to first make sure networkmanager is executing scripts in dispatcher.d, I put a simple script in there, with appropriate permissions/ownership. I can execute the script from the command line without error. But when I cause the network status to change, say, by unplugging my ethernet cable, the script does not execute. I'm posting the script, and I'm happy to post anything else that may be of help.
    Again this is a simplified script in order to first ensure that it will be executed...

    Code:
    #!/bin/sh -e
    
    
    exec /usr/bin/wmctrl -c qBittorrent
    
    exit 0

    Thanks!

  2. #2
    Join Date
    May 2011
    Beans
    5

    Re: scripts in /etc/NetworkManager/dispatcher.d NOT executing

    basic system info: 10.10 64bit amd3800
    gnome 2.32.0

  3. #3
    Join Date
    May 2011
    Beans
    5

    Re: scripts in /etc/NetworkManager/dispatcher.d NOT executing

    the script wasn't able to call 'wmcntrl' for some reason... but killall-9 qbittorrent works just fine

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •