2022-03-25 09:46:38 +01:00

13 lines
170 B
Bash
Executable File

#!/bin/bash
#set -e
set -u
qui=$1
who |grep "^${qui}" >> /dev/null
if [[ $? -eq 0 ]] ; then
echo "${qui} est connecte"
else
echo "${qui} n'est pas connecte"
fi
exit 0