#!/bin/sh while : do if [ -f /home/symplex/WYDRUK.PRN ];then lpr -PEPSON -r /home/symplex/WYDRUK.PRN fi sleep 3s done