[Wylug-help] Running script on connection to certain wireless network.

Martyn Ranyard martyn at theendofhistether.org.uk
Mon May 18 13:53:50 UTC 2009


Oops, missed a quote, it should be grep 'ESSID:"MyNetworkName"'

Hate when you spot it as you click send.

On Mon, May 18, 2009 at 2:52 PM, Martyn Ranyard <ranyardm at gmail.com> wrote:

> The best way I can think is to run a script on connection and disconnection
> and in it use something like the following :
>
> if iwconfig | grep 'ESSID:"MyNetworkName"; then
>   # Do something clever
> fi
>
> Hope this helps.
> --
> Martyn Ranyard
>
>
> On Sun, May 17, 2009 at 8:58 PM, Timothy Baldwin <
> timbaldwin at fastmail.co.uk> wrote:
>
>> I am using Network Manager on Debian sid, and would like to execute a
>> script upon connection to and disconnection from my wireless network.
>> But not any other network.
>>
>> Any ideas? Scripts located in /etc/NetworkManager/dispatcher.d will
>> apparently be executed on any connections/disconnection.
>>
>> _______________________________________________
>> Wylug-help mailing list
>> Wylug-help at wylug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20090518/c310657f/attachment.htm 


More information about the Wylug-help mailing list