|
From: | Geoff Goas |
Subject: | Re: Add pipe in program |
Date: | Thu, 23 Feb 2017 20:27:09 -0500 |
Can you do bash -c 'command' ?
Hi,I'd like to execute a pipe in the program check:check program check-nfs-resources with path "showmount -e localhost |grep nfs_resource"with timeout 25 secondsdepends on check-nfs-ganesha-serviceif status != 0 for 3 cycles then exec "/usr/sbin/service nfs-ganesha restart"if status != 0 within 60 cycles then unmonitorBut it looks the "|" is "deleted" from my command line. I've tried to scape it with "\" but It doesn't work either.Is there any trick to be able to do this?Thanks a lot,
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |