Data Manipulation

Is there a way to parse data returned via a check command and alert on if the data is present or not.

I am running the script and it retunrs how many messages are in the mailbox. I would like to create a notification if the mailbox has a certain amount of messages present.

Has anyone done this before?


you could write a script which greps the output looking for cetrtain states and responds accordingly…