TP Shell Suite

This commit is contained in:
2022-03-25 09:46:38 +01:00
10 changed files with 15 additions and 2 deletions

Submodule Sio1/SISR1/40-BashEtShell/SioTP added at b7be885670

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