Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Description:Muestra el logname , el terminar que usas , el número de usuarios conectados y tus procesos
- #Author:jMa
- echo "*Hola usuario $LOGNAME, está usted conectado en el terminal `who am i| tr -s " " " " | cut -d " " -f2`"
- ./fecha_hora
- echo "*Los usuarios conectados son `who am i| tr -s " " " " | cut -d " " -f1`"
- echo "*Los procesos en ejecución por el usuario $LOGNAME son `ps aux | grep $LOGNAME | tr -s " " " " | cut -d " " -f11` "
Advertisement
Add Comment
Please, Sign In to add comment