/* * uuto: send files to another uucp system slightly differently */ #include #include #include #include #include #include #include char template[] = "~/receive"; char program[] = "uuto"; main(argc, argv) char **argv; { char options[80]; char copy=0; register i; register size; struct stat foo; register char *person; char cmd[2048]; options[0] = 0; if (!getcfg()) exit(2); if (argc < 2) { hepme: puts("Usage: uuto [-m -p] files remote!user"); exit(1); } while (argc > 1 && argv[1][0] == '-') { ++argv, --argc; switch (argv[0][1]) { case 'm': case 'r': case 'x': strcat(options, " "); strcat(options, argv[0]); break; case 'p': copy = 1; break; case 'd': case 'n': break; default: goto hepme; } } if (argc < 3) goto hepme; for (i=1; i