Hello Sérgio Abrantes.

Regarding the reported BUG, I have some thoughts to help solve your iwatch 
fails to send sendxmpp problem.

1) When using iwatch in daemon mode (-d), it will use sendxmpp with the root 
user. Then the root user will need a configuration file at '/root/.sendxmpprc'.

2)Analyzing your configuration file for iwatch daemon mode in 
/etc/iwatch/iwatch.xml consider the following change:

- <path type="single" syslog="on" exec="(echo %p: %e %f;w;ps -ef)|sendxmpp -t 
user@example">/tmp</path>
+ <path type="single" syslog="on" exec="echo %p: %e %f | sudo sendxmpp -t 
user@example">/tmp</path>

'ps -ef' is not a recommended command to send your output to sendxmpp, because 
of the large amount of data and can cause sending errors. Consider using 
commands with simpler outputs for sendxmpp like the iwatch strings for 
commands: %c, %e, %f, %F, %p and %v and environment variables or programs like 
date.

'sudo' is recommended to force iwatch to call sendxmpp from the root user, and 
this is important because the sendxmpp configuration file for the root user has 
the permissions 600.


Regards
-- 
  Braulio H. M. Souto
  E-mail:brau...@disroot.org / XMPP:brau...@suchat.org
  FB39 DE61 869F 49D5 CCC8 3AE0 D53A 15D9 83A1 0B94

Reply via email to