From 67c7c1a7c0f6b1934a5c2434f91cc5b3e794d829 Mon Sep 17 00:00:00 2001 From: gardners Date: Tue, 8 May 2012 14:33:17 +0930 Subject: [PATCH] improve monitor-cli to allow choosing which peer to dial. --- monitor-cli.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/monitor-cli.c b/monitor-cli.c index b7210b83..23be2cbc 100644 --- a/monitor-cli.c +++ b/monitor-cli.c @@ -51,8 +51,11 @@ int main(int argc, char *argv[]) { writeLine("monitor vomp\n"); writeLine("monitor rhizome\n"); - if (argc>1) - writeLine("call * 5551 5552\n"); + if (argc>1) { + char msg[1024]; + snprintf(msg,1024,"call %s 5551 5552\n",argv[1]); + writeLine(msg); + } while(1) { poll(fds,fdcount,1000);