4 * Usage: test-tool crontab <file> -l|<input>
6 * If -l is specified, then write the contents of <file> to stdout.
7 * Otherwise, copy the contents of <input> into <file>.
9 int cmd__crontab(int argc
, const char **argv
)
15 usage("test-tool crontab <file> -l|<input>");
17 if (!strcmp(argv
[2], "-l")) {
18 from
= fopen(argv
[1], "r");
23 from
= xfopen(argv
[2], "r");
24 to
= xfopen(argv
[1], "w");
27 while ((a
= fgetc(from
)) != EOF
)