| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

verificar se um usuario esta logado

Page history last edited by PBworks 17 years, 5 months ago

Verificar se um usuário está logado

# script para testar se um usuário está logado
=================================
#!/bin/bash
# Criado em:Ter 03/Jan/2006 hs 15:57
# ultima modificação: Ter 03 Jan 2006 16:00:34 BRST
# script para testar se um usuário está logado
# Autor: Sérgio Luiz Araújo Silva

if who | grep $1 >> /dev/null
    then echo $1 está logado
else
    echo $1 não se encontra no pedaço
fi

Comments (0)

You don't have permission to comment on this page.