]> andersk Git - moira.git/commitdiff
added motd command
authormar <mar>
Tue, 27 Jun 1989 14:33:56 +0000 (14:33 +0000)
committermar <mar>
Tue, 27 Jun 1989 14:33:56 +0000 (14:33 +0000)
clients/mrtest/mrtest.c
clients/mrtest/test_cmds.ct

index fbe3c8548d596377e67a46665dd3024cefe235ec..0cbf3a05d1384abcd6fc78974e551c6c517aa7f9 100644 (file)
@@ -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");
+}
index 7c51e97cf42aac531a65310a928b8dd53a54410e..e2ed6f6f31a29749aa888d1d5c838ecf098480f6 100644 (file)
@@ -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;
 
This page took 0.07217 seconds and 5 git commands to generate.