monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exec missing part of output


From: Francisco Reyes
Subject: Exec missing part of output
Date: Wed, 11 Feb 2015 00:19:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

I have a bash script I call from exec when a condition is met:

#!/usr/local/bin/bash
Log=/var/log/mysql-proc-list.log
date >> $Log
/usr/local/bin/mysql -e "show processlist;" >> $Log


if I run that script manually I get the expected result. First date a line then followed by output of the command. However, when I run the above from monit from a triggered condition only the date line shows.

Any ideas or suggestions?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]