Oops, missed a quote, it should be grep &#39;ESSID:&quot;MyNetworkName&quot;&#39;<br><br>Hate when you spot it as you click send.<br><br><div class="gmail_quote">On Mon, May 18, 2009 at 2:52 PM, Martyn Ranyard <span dir="ltr">&lt;<a href="mailto:ranyardm@gmail.com">ranyardm@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The best way I can think is to run a script on connection and disconnection and in it use something like the following :<br>
<br>if iwconfig | grep &#39;ESSID:&quot;MyNetworkName&quot;; then<br>  # Do something clever<br>fi<br>
<br>Hope this helps.<br>--<br><font color="#888888">Martyn Ranyard</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, May 17, 2009 at 8:58 PM, Timothy Baldwin <span dir="ltr">&lt;<a href="mailto:timbaldwin@fastmail.co.uk" target="_blank">timbaldwin@fastmail.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am using Network Manager on Debian sid, and would like to execute a<br>
script upon connection to and disconnection from my wireless network.<br>
But not any other network.<br>
<br>
Any ideas? Scripts located in /etc/NetworkManager/dispatcher.d will<br>
apparently be executed on any connections/disconnection.<br>
<br>
_______________________________________________<br>
Wylug-help mailing list<br>
<a href="mailto:Wylug-help@wylug.org.uk" target="_blank">Wylug-help@wylug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>