On Wed, 08 Jul 2015 17:38:41 +0200 "chorem.org scm" <scm@users.chorem.org> wrote:
This is an automated email from the git hooks/post-receive script.
New commit to branch develop in repository mum.
See http://git.chorem.org/mum.git
commit df5cb6c2e6ebad6ab980efb410b71f9ecd41549f Author: Alexis Guilbaud <guilbaud@codelutin.com> Date: Wed Jul 8 16:49:15 2015 +0200
removed LANG=C on ssh commands (does not work), must find another way to use env variables with Paramiko ... - cmd = "LANG=C top -b -n 1" + cmd = "top -b -n 1" ...
as-tu essayé plutôt des choses comme: - (LANG=C top -b -n 1 |head -5) - bash -c 'LANG=C top -b -n 1 |head -5' la 2eme a plus de chance de fonctionner. Car je pense que Paramiko exec_command attend une commande (un binaire et des options et n'aime pas qu'on commence avec quelque chose qui n'est pas un binaire -- Benjamin POUSSIN -------------------- tél: +33 (0) 2 40 50 29 28 email: poussin@codelutin.com http://www.codelutin.com