What does "lineman" mean?

Lineman: A man employed to examine the rails of a railroad to see if they are in good condition; also, a man employed to repair telegraph lines.

Sources