unix为防止终端长时间没有动作,挂死的办法
unix为防止终端长时间没有动作挂死,可以在另一个终端向前一个发write 如下:while : ;do printf "`date `nnn" ; printf "`date` nnnnn"|write oracle pts/2 ;sleep 2 ;doneoracle pts/2 是用w命令看到的前一个终端的标识[@more@]
Solaris linux 系统监控脚本
#!/bin/sh# Solaris system_monitor #. /.profileday=`date +%m%d%Y`file="/var/log/system/sysinfo$day"if [ -f $file ]; thenecho "ok">/dev/null[@more@]#!/bin/sh# Solaris system_monitor #. /.profileday=`date +%m%d%Y`file="/var/log/system/sysinfo$day"if [ -f $file ]; thenecho "ok">/dev/nullelseecho " date cpu mem swap load average oracle sessions">>$fileecho " user system idle free free 1 5 15">>$fileecho "">>