echo > 1.txt
vim top.sh
#!/bin/sh
export TERM=linux
top -b -n 1 >> 1.txt
vim /etc/crontab
*/1 * * * * sh top.sh
转载于:https://blog.51cto.com/mecho/175607
转载于:https://blog.51cto.com/mecho/175607