2021-11-04 17:48:13

This commit is contained in:
gbaconni
2021-11-04 17:48:13 +01:00
parent ab8c4fa7b8
commit bc7345eff9
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/04 12:36:53 by gbaconni #+# #+# #
# Updated: 2021/11/04 17:43:30 by gbaconni ### lausanne.ch #
# Updated: 2021/11/04 17:48:10 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
@@ -66,6 +66,12 @@ ft_network ()
echo "#Network: IP ${ip} (${mac})"
}
ft_sudo ()
{
count=$(find /var/log/sudo -type f -name log | wc -l)
echo "#Sudo : ${count} cmd"
}
ft_update ()
{
temp=(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX)
@@ -104,6 +110,7 @@ main ()
ft_tcpcon
ft_userlog
ft_network
ft_sudo
ft_update
return 0
}