13 lines
170 B
Bash
Executable File
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
|