Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- _DPOOL=`ls /var/run/daemons`;
- _LIST="";
- _SUBLIST=""
- for _DAEMON in $_DPOOL
- do
- _SUBLIST="$_SUBLIST $_DAEMON";
- done
- _LIST="[$_SUBLIST ]";
- _SUBLIST="";
- _FREESPACE=`gawk -F: '{print $3 }' /etc/passwd`;
- for _PERCENTSPACE in $_FREESPACE
- do
- _PERCENTSPACE=$(($_PERCENTSPACE * 100));
- _SUBLIST="$_SUBLIST $_PERCENTSPACE";
- done
- _LIST="$_LIST [ $_SUBLIST ]";
- echo "$_LIST";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement