is this wise?

Mark Buda root at chessene.UUCP
Sun Apr 30 11:59:06 AEST 1989


Consider this (and ignore the lack of error checking):

/* finger.c */
#include <stdio.h>
main()
{
FILE *f;
int c;
f = fopen("/dev/hosts/uunet.uu.net/tcp/79", "r+");
fprintf(f, "\r\n");
while ((c = getc(f)) != EOF) putchar(c);
fclose(f);
}

There. Isn't that much nicer than sockets?

Mark Buda
hermit at chessene.uucp
hermit%chessene.uucp at uunet.uu.net
...!rutgers!bpa!vu-vlsi!devon!chessene!hermit
devon.lns.pa.us!chessene!hermit



More information about the Comp.unix.wizards mailing list