-/* $Header$
+/* $Id$
*
* Test client for update_server protocol.
*
- * Reads commands from the command line:
- * test host [commands...]
- * -s file file sends file to host
- * -S file file sends encrypted file to host
- * -i file sends instruction file to host
- * -x file executes instructions
- * -n nop
+ * Copyright 1992-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
#include <mit-copyright.h>
+#include <moira.h>
+#include <update.h>
+
#include <stdio.h>
-#include <string.h>
+#include <stdlib.h>
+
#include <gdb.h>
-#include <sys/param.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <update.h>
-#include <errno.h>
-#include <moira.h>
-#include <moira_site.h>
-#include <krb.h>
+
+void usage(void);
CONNECTION conn;
char *whoami;
int main(int argc, char **argv)
{
char *host, service_address[256], *file, *rfile, buf[256];
- int code, i, count = 0;
+ int code, i;
whoami = argv[0];
initialize_sms_error_table();
exit(code);
}
-usage(void)
+void usage(void)
{
fprintf(stderr, "Usage: test host [commands...]\n");
fprintf(stderr, " Commands are:\n");