]> andersk Git - moira.git/blobdiff - clients/mrtest/mrtest.c
added motd command
[moira.git] / clients / mrtest / mrtest.c
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");
+}
This page took 0.044905 seconds and 4 git commands to generate.