TP Shell Suite

This commit is contained in:
Louis Déprés 2022-03-25 09:46:38 +01:00
commit 4222c35a27
10 changed files with 15 additions and 2 deletions

@ -0,0 +1 @@
Subproject commit b7be885670eb781eeb106008b185e7ff78be1c68

View File

@ -0,0 +1,12 @@
#!/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

View File

@ -1,4 +1,4 @@
lucien:Lucien Aymar
lucien:Lucien Dubois
claudine:Claudine Dupont
robert:Robert Michel
robert:Robert Dupond
marcelle:Marcelle Parde