TP Shell Suite
This commit is contained in:
commit
4222c35a27
1
Sio1/SISR1/40-BashEtShell/SioTP
Submodule
1
Sio1/SISR1/40-BashEtShell/SioTP
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit b7be885670eb781eeb106008b185e7ff78be1c68
|
12
Sio1/SISR1/40-BashEtShell/present
Executable file
12
Sio1/SISR1/40-BashEtShell/present
Executable 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
|
@ -1,4 +1,4 @@
|
||||
lucien:Lucien Aymar
|
||||
lucien:Lucien Dubois
|
||||
claudine:Claudine Dupont
|
||||
robert:Robert Michel
|
||||
robert:Robert Dupond
|
||||
marcelle:Marcelle Parde
|
Loading…
x
Reference in New Issue
Block a user