LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


View Poll Results: Wifi Nuisance - Total value given by the script:
0 0 0%
[0 - 50[ 2 100.00%
[50-100[ 0 0%
[100-150[ 0 0%
[150-200[ 0 0%
[200-250[ 0 0%
[250-300[ 0 0%
>=300 0 0%
Voters: 2. You may not vote on this poll

Reply
  Search this Thread
Old 10-26-2012, 09:15 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Poll - Script to measure the Wifi Nuisance


Hi,

This is poll about wifi. If you have too much routers around you, it might be not so much wished. Just a poll

This script calculates for you interface eth1 (you could change it to wlan) the sum of the 6th column.

More than 800, that's pretty a lot.


Command:
Code:
bash wifinuisance-demo.sh
Code:
  
#!/bin/bash

  if [ ! -f wifipss.pl ] ; then 
      wget "http://pastebin.com/raw.php?i=i5Kh9pzT" -O wifipss.pl
  fi
  if [ ! -f wifipss.pl ] ; then 
    echo "Error."
    exit
  fi
  # If you havent any wlan/eth1, make sure to run before: sudo ifconfig eth1 up
  while : ; do 
    PERLRADAR=` perl wifipss.pl `
    # to be shorten soon
    NBR=` echo "$PERLRADAR"  |    awk '  END{ var=NR-1 ; print var  } '`
    POWERNBR=` echo "$PERLRADAR" | awk ' {  print $6  } ' | grep -v Encry  | awk -F "/" ' { print $1 } ' | awk -v vk=0 ' { vk=vk+$0 ; print vk} ' | tail -n 1 `
    echo "* Routers:$NBR ; Total power:$POWERNBR"
    [ -f /usr/bin/festival ] && echo "$NBR. $POWERNBR" | festival --tts
    sleep 0.2s
  done
  exit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with a shell script to measure network bandwith ali2011 Linux - Newbie 9 12-05-2011 03:40 PM
Measure script mahmoud Programming 4 06-12-2009 02:41 PM
Tool or script to measure bandwdith koolkicks311 Linux - Software 1 04-20-2007 11:28 PM
Best Linux Distro for WIFI - Poll rsvirani Linux - Wireless Networking 2 09-14-2005 08:50 PM
measure the network speed between a wifi station and access point powah Linux - Wireless Networking 1 08-19-2005 11:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration