發新話題
打印

FTP LOG SCRIPT

FTP LOG SCRIPT

大家好, 自己想設計一個簡單程式, 用來capture ftp error log , 如果發現有ftp error , 就send email to administrator. 否則就保存error log.

請問點寫呢?

我用default shell

TOP

Usually is /var/log/xferlog .....
Login error is usually /var/log/auth.log or /var/log/security

TOP

多謝你的解答, 但是我使用Solaris SYSTEM, 而且我又要自動SEND MAIL TO ADM, 我可以利用SCRIPT 在CRON JOB , 定期檢查.

請師兄可以幫手

TOP

Under Linux, there is a set of scripts called logcheck (google "linux logcheck").
See if you could use it in Solaris.

TOP

發新話題