5 * Usage: test-tool cron <file> [-l]
7 * If -l is specified, then write the contents of <file> to stdout.
8 * Otherwise, write from stdin into <file>.
10 int cmd__crontab(int argc, const char **argv)
15 if (argc == 3 && !strcmp(argv[2], "-l")) {
16 from = fopen(argv[1], "r");
20 } else if (argc == 2) {
22 to = fopen(argv[1], "w");
24 return error("unknown arguments");
26 while ((a = fgetc(from)) != EOF)