I am trying to implement a simple log server in Bash. It should take a file as a parameter and serve it on a port with netcat.
( tail -f $1 & ) | nc -l -
One way would be to simply do a ps -ef and grep for tail with your script ppid