hervasiop12345

infosis

Sep 26th, 2011
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. #Description:Muestra el logname , el terminar que usas , el número de usuarios conectados y tus procesos
  3. #Author:jMa
  4.  
  5. echo "*Hola usuario $LOGNAME, está usted conectado en el terminal `who am i| tr -s " " " " | cut -d " " -f2`"
  6. ./fecha_hora
  7. echo "*Los usuarios conectados son `who am i| tr -s " " " " | cut -d " " -f1`"
  8. 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