http://yajhfc.berlios.de/doc/cupsfaxprinter.shtml
sa konzole setovao printer:
hernad@macan:~$ lpadmin -p yajhfc -D 'YajHFC virtual fax printer' -L 'localhost' -E -P Downloads/yajhfc.ppd -o "printer-error-policy=abort-job" -o "printer-is-shared=false" -v 'yajhfc:/tmp/yajhfc-$USERNAME'
yajhfc:
#!/bin/bash # # Get the user that owns the job USERNAME=$2 if [ -z $USERNAME ]; then echo "INFO: No user given. Discarding print job." 1>&2 exit 0 fi PIPENAME=${DEVICE_URI#yajhfc:} PIPENAME=${PIPENAME/\$USERNAME/$USERNAME} if [ ! -p "$PIPENAME" ]; then echo "INFO: Pipe $PIPENAME does not exist or is not a pipe, discarding print job (is YajHFC running?)" 1>&2 exit 0 fi if [ ! -w "$PIPENAME" ]; then echo "ERROR: Pipe $PIPENAME is not writeable." 1>&2 exit 1 fi m=`cat $6 >"$PIPENAME" 2>&1` RC=$? case $RC in 0) echo "INFO: Fax sent" 1>&2 ;; *) echo "ERROR: cat error (RC=$RC): $m" 1>&2 ;; esac exit $RC
hernad@macan:/usr/libexec/cups/backend$ ls
HP-Fax dnssd fax ipp riousbprint socket bluetooth epsonfax hpfax lpd smb usb canonijnetwork epsonfirewire http mdns snmp *yajhfc*
sistem ga prepozna kao fax printer, ali yajhfc-u ne prosljeđuje broj faxa nego se otvara YayHFC u koji unosimo broj koji pozivamo
Ovo sam na kraju riješio kako treba tako što sam setovao Generic Postscript driver, tako da je sistem opet počeo prepoznavati YajHFC kao printer, tako da više ne traži broj fax-a. Međutim, named pipe, koji je podešen aktivira YajHFC aplikaciju i tu ručno unosim broj fax-a.
I to je to. Stvar radi sasvim ok.