aix_ssh scp command not found
vi /etc/environmentPATH=/usr/local/bin:$PATH[@more@]> scp: Command not found. > lost connection Add /usr/local/bin to the end of the line containing 'PATH' in /etc/environment on the AIX box. No further action needed -- it will work on the next scp attempt. /etc/environment (on an AIX machine) always gets executed, even for non-interactive logins, so if /usr/local/bin is listed in PATH there, scp will work correctly. It is best to make sure /usr/local/bin is listed at the *end* of the PAT
linux_监控网卡流量脚本
监控网卡流量脚本 [@more@]监控网卡流量脚本 前言:这个脚本是用来监控网卡的瞬时流量的,跟Cacti的计算结果完全吻合。如果想让系统每多少分钟取一次可以将此脚本改良成任务计划执行的脚本并记录到日志中。 #!/bin/bash################################ Author : Ajian## Time : 2007-9-21## File: netflood.sh## watch the eth0 or eth1 ##################################Set the varible.#ETH=eth0ETH="$1"while : ; do time=`date +%m"-"%d" "%k":"%M` day=`dat