[Users] Help With Zimbra Script Please
L Mark Stone
lmstone at lmstone.com
Sat Nov 2 14:52:39 CET 2019
Scripting is not my forte, but I know a little, so asking for help please.
I'd like to watch mailbox.log for a certain string as the zimbra user and then take an action. Something like:
tail -F /opt/zimbra/log/mailbox.log | grep --line-buffered 'Connection pool shut down' | while read ; do 'zmmailboxdctl restart' ; done
I'd run this in a detached screen session.
Any help/suggestions appreciated!
Thanks,
Mark
_________________________________________________
L. Mark Stone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zetalliance.org/pipermail/users_lists.zetalliance.org/attachments/20191102/8df56742/attachment.html>
More information about the Users
mailing list