: A mail script for those of us who have distributed mail, and not : host-delivered mail..... Like Iowa State : on ^timer * exec -name mail msgchk -nonotify nomail on ^timer * { @ foo = pipe(msgchk -nonotify nomail) if (foo) { if ((num = word(2 $foo)) != oldmail) { echo *** You have new email \(Total of $num\) @ oldmail = num } } { @ oldmail = 0 } }