I know you can do this with ksh, but is it possible to write a system monitoring script with awk?
For example, I would like to constantly check my /var/adm/messages file, for an entry, if the entry is found...email the system admins.
Or on AIX, if there is a perm error in the errpt, email the admins.
Ofcourse, this in awk, if possible.
For example, I would like to constantly check my /var/adm/messages file, for an entry, if the entry is found...email the system admins.
Or on AIX, if there is a perm error in the errpt, email the admins.
Ofcourse, this in awk, if possible.