|
I strongly recommend you install Perl on the AIX box. Nowadays it's almost essential for system administration. On our AIX 5.3 server, our /usr/bin/perl comes from perl.rte Fileset or package.
I had an error in my note (which I just corrected). This string inside the "mail ..." command
'ORCL error'
should be changed to
\"ORCL error\"
I think that caused the error you got on your RHEL 4. If not, show me the exact command and error.
If you grep alert.log for a pattern, it completely defeats the purpose of using tail -f. Read the first paragraph of my note.
BTW, many people like to `cat somefile | grep pattern', not knowing `grep pattern somefile' is more efficient. Likewise, `grep -c pattern somefile' is much more efficient than `grep pattern somefile | wc -l'.
Yong Huang
[ 本帖最后由 Yong Huang 于 2009-8-28 12:26 编辑 ] |
|