first commit

This commit is contained in:
Erreur32 2020-04-14 10:07:23 +02:00
parent 202142a293
commit 2d1520c3da

View file

@ -46,7 +46,7 @@ printf "Swap usage \e[46;3m\e[30m\t%s\e[0;0m\tProcesses \e[35;3m\t%s\e[0;0m\n"
printf "User SSH \e[41m\e[1m\t%s\e[0;0m\tShell \e[95m\t%s\e[0;0m\n" " $(users | wc -w) " $SHELL printf "User SSH \e[41m\e[1m\t%s\e[0;0m\tShell \e[95m\t%s\e[0;0m\n" " $(users | wc -w) " $SHELL
printf "%s------------\t------\t------------\t--------------\n" printf "%s------------\t------\t------------\t--------------\n"
echo -e "\n$(tput setaf 7) Conected Users $(users | wc -w) \e[1;30m" ; [[ -z "$nbconnected" ]] && last -a -n $nbconnected | grep pts | head -3 || last -a -n $nbconnected | grep pts echo -e "\n Conected Users $(users | wc -w) \e[1;30m" ; [[ -z "$nbconnected" ]] && last -a -n $nbconnected | grep pts | head -3 || last -a -n $nbconnected | grep pts | head -3
echo -e "\e[0m" echo -e "\e[0m"
#[[ -z "$nbconnected" ]] && echo "Empty" || echo "Not empty" #[[ -z "$nbconnected" ]] && echo "Empty" || echo "Not empty"