May 2017
Beginner
552 pages
28h 47m
English
You can use netcan to create a custom server. The next recipe demonstrates a server that will send the time every 10 seconds. The time can be received by connecting to the port with a client nc session of telnet:
# A script to echo the date out a port while [ 1 ] do sleep 10 date done | nc -l 12345 echo exited