From 093b57b1082bcaee9e29d6153ea85ef5eda0c747 Mon Sep 17 00:00:00 2001 From: mar Date: Tue, 27 Jun 1989 14:33:56 +0000 Subject: [PATCH 1/1] added motd command --- clients/mrtest/mrtest.c | 16 ++++++++++++++++ clients/mrtest/test_cmds.ct | 3 +++ 2 files changed, 19 insertions(+) diff --git a/clients/mrtest/mrtest.c b/clients/mrtest/mrtest.c index fbe3c854..0cbf3a05 100644 --- a/clients/mrtest/mrtest.c +++ b/clients/mrtest/mrtest.c @@ -263,3 +263,19 @@ test_dcm(argc, argv) if (status = sms_do_update()) ss_perror(ss, status, " while triggering dcm"); } + + +test_motd(argc, argv) + int argc; + char **argv; +{ + int status; + char *motd; + + if (status = sms_motd(&motd)) + ss_perror(ss, status, " while getting motd"); + if (motd) + printf("%s\n", motd); + else + printf("No message of the day.\n"); +} diff --git a/clients/mrtest/test_cmds.ct b/clients/mrtest/test_cmds.ct index 7c51e97c..e2ed6f6f 100644 --- a/clients/mrtest/test_cmds.ct +++ b/clients/mrtest/test_cmds.ct @@ -15,6 +15,9 @@ request test_old, "Use old protocol", old, 1; + request test_motd, "Get the Message of the Day", + motd, m; + request test_query, "Make a query.", query, qy; -- 2.45.2