From: mar Date: Tue, 27 Jun 1989 14:33:56 +0000 (+0000) Subject: added motd command X-Git-Tag: PATCH5~44 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/093b57b1082bcaee9e29d6153ea85ef5eda0c747?hp=5f9f27e4cca3f2aa872f3d852425afc86c698c38 added motd command --- 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;