#!/bin/sh
VAR1=$(uptime | awk -F’ *,? *’ ‘{print $(NF-2)}’ | awk ‘$1 >= 10 {print $1}’)if [ $VAR1 ]
then
top -b -n 1 | head -20 > /script/topresult/`date +’%d-%m-%Y_%H-%M-%S’`__file.txt
fi
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Leave a comment