#!/bin/sh
for i in $(grep front /etc/hosts.equiv)
do
#echo; echo $i
sshstr="ps -fu $1"
serv_result="ssh -i /root/rsync-key $i $sshstr"
result=echo `serv_result | awk '{print $3}'`
if [ $result -gt $((1400+2600)) ]
then
echo $sshstr
fi
done
adv/scr.txt · Last modified: 2016/02/03 13:39 by adviator
About this template
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5