#! /usr/bin/python3
import subprocess
subprocess.run("who > /home/sergio/Comandos/who.txt",shell=True)
a=subprocess.check_output("cat $HOME/Comandos/who.txt|wc -l",shell=True)
b=a.decode("utf-8").strip()
print(b)
if b>1:
subprocess.run("zenity --info --text 'Alguien se a conectado'", shell=True)