Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: Record number of connections

$
0
0
Hi,
assuming you box has a configured cron, you can add the following line to your /etc/crontab file

*/5 * * * *     iw dev wlan0 station dump | grep -c Station  | wc -l >> /opt/piratebox/connection.log
That will save the amount current connected clients in the file /opt/piratebox/connection.log
every 5 minutes.

Then you have the values.
if you want to remove that file very startup, then change the path into /opt/piratebox/tmp/connection.log
- that folder is cleaned up every boot.

regards Matthias

Viewing all articles
Browse latest Browse all 1863

Trending Articles