Answer, Part II

Matt Heusser mattandap at allegan.net
Tue Oct 5 07:43:15 CDT 1999


For a bit more detail:

#It ends up:

$gr = "tcp"; 
$pm = "127.0.0.1"; 
$org = "13";

tcp is the protocol, 127.0.01 is the IP address which maps
to localhost (your box).  13 is the port number to connect to -
port 13 is where the daytime service is on most U*IX machines.

$stuff creates a socket connection to the local box on port
13, and the while loop prints the output, which is a POSIX-style
datetime.

Both Joel and David pointed out that some U*IX boxes 
have this service disabled, but it worked on Happyfunball. ;-)

Joel also pointed out the security risks of having services
like this enabled.   Think we should have a meeting on
security? 


see you next month,

Matthew R. Heusser
President, Grand Rapids.PM     -> http://grand-rapids.pm.org

"...Those who insist on entitlements from the state
     become enemies of the State instead."
     - Dr. Tim Kimmel, Author & Popular Speaker




More information about the grand-rapids-pm-list mailing list