ssh vmuser@ <<EOF
mkdir /home/vmuser/xunjian
rm /home/vmuser/xunjian/xj.log
touch /home/vmuser/xunjian/xj.log
hostname >>/home/vmuser/xunjian/xj.log
df -lh >>/home/vmuser/xunjian/xj.log
top -b -n 1 | grep Cpu >>/home/vmuser/xunjian/xj.log
free -m >>/home/vmuser/xunjian/xj.log
EOF

05-11 15:38