Scripts to deal with A/UX's buggy UUCP

Paul Campbell paul at taniwha.UUCP
Mon Mar 18 14:19:09 AEST 1991


In article <1991Mar12.170918.29890 at mitem> unger at mitem (Tom Unger) writes:
>
>In article <1991Mar10.194813.10357 at panix.uucp> alexis at panix.uucp (Alexis Rosen) writes:
>>The first one, uupoll, will call the named system up to a specified number of
>I too wrote a uupoll program when setting up uucp.  Mine is a bit

Yeah so did I - compile this, install it as /usr/bin/uupoll and make it
setuid uucp (if you want anyone to be able to run it)

	Paul

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
#include <stdio.h>
main(argc, argv)
char ** argv;
{
	char buff[100];
	int id, i;

	if (argc == 2) {
		sprintf(buff, "-s%s", argv[1]);
		if ((id = fork()) == 0) {
			for (i = 0; i < _NFILE; i++)
				close(i);
			execl("/usr/lib/uucp/uucico",
				"uucico",
				"-r1",
				buff,
				NULL);
		} else 
		if (id > 0) {
			exit(0);
		}
	}
	fprintf(stderr, "%s: invalid parameter\n", argv[0]);
	exit(2);
}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-- 
Paul Campbell    UUCP: ..!mtxinu!taniwha!paul     AppleLink: CAMPBELL.P

"But don't we all deserve.
 More than a kinder and gentler fuck" - Two Nice Girls, "For the Inauguration"



More information about the Comp.unix.aux mailing list