1 #define UNCOMPRESS "/usr/bin/gunzip"
3 /* Citadel/UX rcit $Id$
5 * This program simply feeds its standard input to the networker. It is
6 * used primarily to hook up to UUCP feeds of Citadel data.
12 * -z Input is compressed, run uncompress on it before processing
13 * -s Don't run netproc now, just accept the input into spoolin
25 void get_config(void);
28 int main(int argc, char **argv)
31 char flnm[128],tname[128];
33 char compressed_input = 0;
37 sprintf(flnm,"./network/spoolin/rcit.%d", getpid());
38 sprintf(tname, tmpnam(NULL));
40 for (a=1; a<argc; ++a) {
41 if (!strcmp(argv[a],"-z")) compressed_input = 1;
42 if (!strcmp(argv[a],"-s")) spool_only = 1;
46 if (compressed_input) minput=popen(UNCOMPRESS,"r");
47 if (minput==NULL) fprintf(stderr,"rnews: can't open input!!!!\n");
50 while ((a=getc(minput))>=0) putc(a,mout);
55 if (compressed_input) pclose(minput);
56 if (!spool_only) execlp("./netproc", "netproc", "-i", NULL);