On 29. aug. 2007, at 12.28, Meurer, Werner wrote:
Is it possible to have more than one action in an exec like:check file /etc/monitrc with path /etc/monitrc if changed checksum then exec "cp /etc/monitrc /etc/monitrc.`date +%M%d`;/etc/init.d/monit restart"
Use a shell to do this, like so,exec "/bin/bash -c 'cp /etc/monitrc /etc/monitrc.`date +%M%d` && /etc/ init.d/monit restart'"
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
