From the remote host, enter the print command to print a text file 'test.txt'.
$ lpr -Pserver
test.txt
or
$ lpr -dserver test.txt
The print command is a bit different according to the host type. Refer to the printer setup and print command in Configuring Remote Printer.