Is there a way through bash/nc/xinetd/nginx clever trickery to run a TCP server that only output Unix time then disconnect?
A client connects to the TCP server, and server outputs the unix time in string form, e.g. "1456860938", then server disconnects client.
Server should continue running to serve many clients, but the length of time for each connection is very short.