Closed lenerd closed 6 years ago
I still get warnings, e.g.,
Warning: sudo() received nonzero return code -1 while executing 'kill -9 `ps aux | grep YaoSingleExecution | awk '{print $2}'`'!
kill
should return with 1
(not -1
) if it fails (see manpage).
When executing the ps
/grep
part, I also get the grep
process itself. Maybe that is part of the problem.
$ ps aux | grep YaoSingleExecution
lennart 30166 0.0 0.0 8516 2448 pts/0 S+ 14:52 0:00 grep YaoSingleExecution
In the
fabfile.py
, https://github.com/cryptobiu/MATRIX/blob/174fc07539be07b3bcffd8afc988d6dbb17ae742/Execution/fabfile.py#L75-L76 when executing a protocol, it tries to kill any old instances withkillall
.However, in this case it fails since
run.sh
does not seem to be part of the process name.Using
pkill innerproduct
orpkill
with-f
works from the shell (-f
looks into the process's command line). But if we usepkill -f
in thefabfile.py
we kill "ourself".