12 lines
310 B
Plaintext
Executable File
12 lines
310 B
Plaintext
Executable File
while true; do
|
|
me=$(echo "$USER@$(hostname)")
|
|
version=$(uname -rv)
|
|
date=$(date "+%Y-%m-%d %H:%M")
|
|
chkinet=$(ping -c 1 192.168.1.1 >/dev/null && echo "up" || echo "off")
|
|
used=$(vmstat | awk 'END {printf $3}' | tr -d "M")
|
|
batt=$(apm -l)
|
|
|
|
echo " $date%{r}$me $version $chkinet $used $batt"
|
|
sleep 1
|
|
done
|