|
|
1.1 root 1: #include <stdio.h>
2:
3: char * thissys = "THISSYS";
4:
5: main()
6: {
7: char buf[132];
8: char cmd[132];
9: char format[132];
10: char sysname[132];
11:
12: getrules();
13: putchar('>');
14: fflush(stdout);
15: while(gets(buf)) {
16: switch(rewrite(buf, "USER", 1, cmd, format, sysname)) {
17: case -1:
18: printf("can't recognize %s\n", buf);
19: break;
20: case 1:
21: printf("can't forward %s\n", buf);
22: case 0:
23: printf("%s->'%s'\n", buf, cmd);
24: break;
25: }
26: putchar('>');
27: fflush(stdout);
28: }
29: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.