diff --git a/Sio1/SISR1/40-BashEtShell/SioTP b/Sio1/SISR1/40-BashEtShell/SioTP new file mode 160000 index 0000000..b7be885 --- /dev/null +++ b/Sio1/SISR1/40-BashEtShell/SioTP @@ -0,0 +1 @@ +Subproject commit b7be885670eb781eeb106008b185e7ff78be1c68 diff --git a/Sio1/SISR1/40-ShellEtBash/crsamba1 b/Sio1/SISR1/40-BashEtShell/crsamba1 similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/crsamba1 rename to Sio1/SISR1/40-BashEtShell/crsamba1 diff --git a/Sio1/SISR1/40-ShellEtBash/crsamba2 b/Sio1/SISR1/40-BashEtShell/crsamba2 similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/crsamba2 rename to Sio1/SISR1/40-BashEtShell/crsamba2 diff --git a/Sio1/SISR1/40-ShellEtBash/crsamba4 b/Sio1/SISR1/40-BashEtShell/crsamba4 similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/crsamba4 rename to Sio1/SISR1/40-BashEtShell/crsamba4 diff --git a/Sio1/SISR1/40-ShellEtBash/crsamba5 b/Sio1/SISR1/40-BashEtShell/crsamba5 similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/crsamba5 rename to Sio1/SISR1/40-BashEtShell/crsamba5 diff --git a/Sio1/SISR1/40-ShellEtBash/crsamba7 b/Sio1/SISR1/40-BashEtShell/crsamba7 similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/crsamba7 rename to Sio1/SISR1/40-BashEtShell/crsamba7 diff --git a/Sio1/SISR1/40-BashEtShell/present b/Sio1/SISR1/40-BashEtShell/present new file mode 100755 index 0000000..7d41bcd --- /dev/null +++ b/Sio1/SISR1/40-BashEtShell/present @@ -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 diff --git a/Sio1/SISR1/40-ShellEtBash/rsamba b/Sio1/SISR1/40-BashEtShell/rsamba similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/rsamba rename to Sio1/SISR1/40-BashEtShell/rsamba diff --git a/Sio1/SISR1/40-ShellEtBash/users.txt b/Sio1/SISR1/40-BashEtShell/users.txt similarity index 53% rename from Sio1/SISR1/40-ShellEtBash/users.txt rename to Sio1/SISR1/40-BashEtShell/users.txt index 718458c..e34bc7f 100644 --- a/Sio1/SISR1/40-ShellEtBash/users.txt +++ b/Sio1/SISR1/40-BashEtShell/users.txt @@ -1,4 +1,4 @@ -lucien:Lucien Aymar +lucien:Lucien Dubois claudine:Claudine Dupont -robert:Robert Michel +robert:Robert Dupond marcelle:Marcelle Parde diff --git a/Sio1/SISR1/40-ShellEtBash/users.txt.pwd b/Sio1/SISR1/40-BashEtShell/users.txt.pwd similarity index 100% rename from Sio1/SISR1/40-ShellEtBash/users.txt.pwd rename to Sio1/SISR1/40-BashEtShell/users.txt.pwd