On Tue, 13 Dec 1994, Bret McDanel wrote:
> > Let's not over look the obvious...
> >
> >
> > main()
> > {
> > printf(\n **** Contact tom @
pserv1 .
dot .
state .
az .
us for more information ***\n");
> > }
> >
> > Or am I missing something?
> >
> > Jason
> >
> well, you'd need to ibnd port 79.. the program would prolly look more like:
>
> #include <sys/types.h>
> #include <sys/signal.h>
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <netdb.h>
[the rest of delete in the interest of sanity]
All you have to do is set up inetd.conf so that inetd will bind the
program to port 79 for ya. An entry in /etc/inetd.conf might look like this
finger stream tcp nowait nobody /usr/etc/tcpd /usr/etc/nofinger
Sure, you can write some fancy code to do alot of things but ultimately I
think this thread started with a guy asking how to send out a generic
message.
I rather like the 'cat some.text.file' method myself. That method never
crossed my mind but it does lend itself to easy changes.
Jason
----------------------------------------------------------------------------
jason @
dickory .
sdsu .
edu San Diego State University
jason @
mentor .
sdsu .
edu College of Engineering
jason @
BOOM .
extern .
ucsd .
edu Electrical*Computer Engineering
----------------------------------------------------------------------------
The following email address are no longer valid
odn @
LoD .
amaranth .
com
----------------------------------------------------------------------------
References:
|
|