Command MU

What file is Read to list users that have connected to my KiwiSdr ?
I would like to save the file to my HDD.
Thanks.....

Comments

  • jksjks
    edited November 2020
    mu is an alias for make users And doing make -n users reveals that it does a:
    zcat /var/log/user.log.4.gz > /tmp/kiwi.log;
    zcat /var/log/user.log.3.gz >> /tmp/kiwi.log;
    zcat /var/log/user.log.2.gz >> /tmp/kiwi.log;
    cat /var/log/user.log.1 >> /tmp/kiwi.log;
    cat /var/log/user.log >> /tmp/kiwi.log;
    cat /tmp/kiwi.log | grep -i leaving | grep -vi kf6vo | grep -vi 192.168.1
    rm -f /tmp/kiwi.log
    
    So /var/log/user.* are the log files you'd want to search and copy information from. As usual with Unix there are a dozen different ways of doing this sort of thing depending on the result you want.
    johnk5moKU4BY
  • Thank you for so much help, Sir!

    ------------------------------------------------------------------------------

    zcat /var/log/user.log.4.gz > /tmp/kiwi.log;

    zcat /var/log/user.log.3.gz >> /tmp/kiwi.log;

    zcat /var/log/user.log.2.gz >> /tmp/kiwi.log;

    cat /var/log/user.log.1 >> /tmp/kiwi.log;

    cat /var/log/user.log >> /tmp/kiwi.log;

    Show everything that has 'leaving' in the line        grep -i leaving

    Don't Show anything that has 'kf6vo' in the line       grep -vi kf6vo 

    Don't Show anything that has '192.168.254.*' in the line   grep -vi 192.168.254.*

    IE. My Local Intranet address's of my computers that I use to access my Kiwisdr

    Don't Show anything that has '127.0.0.1' in the line     grep -vi 127.0.0.1

    cat /tmp/kiwi.log | grep -i leaving | grep -vi kf6vo | grep -vi 192.168.254.* | grep -vi 127.0.0.1

    Delete User List:

    rm -f /tmp/kiwi.log

Sign In or Register to comment.